{"id":23053512,"url":"https://github.com/component/classes","last_synced_at":"2025-04-05T22:06:10.846Z","repository":{"id":4312731,"uuid":"5445882","full_name":"component/classes","owner":"component","description":"Cross-browser element class manipulation","archived":false,"fork":false,"pushed_at":"2020-09-03T04:30:49.000Z","size":37,"stargazers_count":52,"open_issues_count":10,"forks_count":25,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T21:04:26.096Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-16T23:31:47.000Z","updated_at":"2023-08-21T11:19:45.000Z","dependencies_parsed_at":"2022-08-19T05:02:11.521Z","dependency_job_id":null,"html_url":"https://github.com/component/classes","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fclasses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fclasses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fclasses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fclasses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/classes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406087,"owners_count":20933803,"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":[],"created_at":"2024-12-16T00:18:29.759Z","updated_at":"2025-04-05T22:06:10.821Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# classes\n\n  Cross-browser element class manipulation, utilizing the native `.classList` when possible. This is not designed to be a `.classList` polyfill.\n\n## Installation\n\n```\n$ component install component/classes\n```\n\n## Example\n\n```js\nvar classes = require('classes');\nclasses(el)\n  .add('foo')\n  .toggle('bar')\n  .remove(/^item-\\d+/);\n```\n\n## API\n\n### .add(class)\n\n  Add `class`.\n\n### .remove(class)\n\n  Remove `class` name or all classes matching the given regular expression.\n\n### .toggle(class)\n\n  Toggle `class`.\n\n### .has(class)\n\n  Check if `class` is present.\n\n### .array()\n\n  Return an array of classes.\n\n## Test\n\n```sh\n$ make test\n```\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fclasses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fclasses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fclasses/lists"}