{"id":16844775,"url":"https://github.com/stephanhoyer/classies","last_synced_at":"2025-03-22T05:31:20.328Z","repository":{"id":25696129,"uuid":"104600205","full_name":"StephanHoyer/classies","owner":"StephanHoyer","description":"Simple css class builder","archived":false,"fork":false,"pushed_at":"2024-11-17T13:46:44.000Z","size":104,"stargazers_count":10,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"next","last_synced_at":"2025-03-18T08:48:18.569Z","etag":null,"topics":["css"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StephanHoyer.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-23T21:27:40.000Z","updated_at":"2024-11-17T13:46:35.000Z","dependencies_parsed_at":"2024-10-28T12:25:42.800Z","dependency_job_id":"bbef48e6-c1f9-4b93-971a-a482a01a42eb","html_url":"https://github.com/StephanHoyer/classies","commit_stats":{"total_commits":40,"total_committers":6,"mean_commits":6.666666666666667,"dds":0.25,"last_synced_commit":"66552ac60c3d2bc9af81495c7052ac5caccb49a4"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanHoyer%2Fclassies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanHoyer%2Fclassies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanHoyer%2Fclassies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanHoyer%2Fclassies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StephanHoyer","download_url":"https://codeload.github.com/StephanHoyer/classies/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244912800,"owners_count":20530764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css"],"created_at":"2024-10-13T12:56:34.043Z","updated_at":"2025-03-22T05:31:19.720Z","avatar_url":"https://github.com/StephanHoyer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# classies\n\n![Build Status](https://github.com/StephanHoyer/classies/actions/workflows/merge.yml/badge.svg)\n[![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)\n![Compression](http://img.badgesize.io/StephanHoyer/classies/master/index.js.svg?compression=gzip)\n\nSimple css class string builder without shenanigans.\n\n## install\n\n```\nnpm install classies\n```\n\n## usage\n\n```js\nconst cls = require(\"classies\");\nconst isSelected = true;\n\nlet classString = cls(\n  {\n    foo: true,\n    bar: someCondition,\n    [classString]: true,\n    isSelected,\n  },\n  separator\n); // separator defaults to ' '\n```\n\n## perfomance\n\nsee [jsperf](https://jsperf.com/cls/1)\n\nLatest version was done by [@isiahmeadows](https://github.com/isiahmeadows) and [@gamb](https://github.com/gamb).\n\nIf you have a better version, feel free to submit a PR.\n\n## releases\n\nReleases are automated by [pr-release](http://pr-release.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephanhoyer%2Fclassies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephanhoyer%2Fclassies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephanhoyer%2Fclassies/lists"}