{"id":14990688,"url":"https://github.com/activeguild/classnames-generics","last_synced_at":"2025-04-12T02:37:56.534Z","repository":{"id":57199633,"uuid":"415328312","full_name":"activeguild/classnames-generics","owner":"activeguild","description":"Use the classnames library more type-safely.","archived":false,"fork":false,"pushed_at":"2023-03-14T13:08:45.000Z","size":41,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T00:35:01.637Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/activeguild.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-10-09T14:13:51.000Z","updated_at":"2023-08-05T21:50:35.000Z","dependencies_parsed_at":"2024-06-21T03:53:53.317Z","dependency_job_id":"ecdb7fcf-5734-496d-8a64-15e42e59adb0","html_url":"https://github.com/activeguild/classnames-generics","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.045454545454545414","last_synced_commit":"78181fcb51f2072e88556c861981482969ac8d31"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeguild%2Fclassnames-generics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeguild%2Fclassnames-generics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeguild%2Fclassnames-generics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeguild%2Fclassnames-generics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/activeguild","download_url":"https://codeload.github.com/activeguild/classnames-generics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248410776,"owners_count":21098779,"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-09-24T14:20:35.699Z","updated_at":"2025-04-12T02:37:56.514Z","avatar_url":"https://github.com/activeguild.png","language":"Shell","readme":"\u003ch1 align=\"center\"\u003eWelcome 😀\u003c/h1\u003e\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://github.com/actions/setup-node\"\u003e\u003cimg alt=\"GitHub Actions status\" src=\"https://github.com/activeguild/classnames-generics/workflows/automatic%20release/badge.svg\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# classnames-generics\nUse the classnames library more type-safely.\n\n## Install\n\n```shell\nnpm i classnames-generics\n```\n\n## Usage\n\n```ts\n\nimport {classNames } from 'classnames-generics';\n\nclassNames\u003c'foo' | 'bar'\u003e('foo', 'bar');\nclassNames\u003c'foo' | 'bar'\u003e('foo', { bar: true });\nclassNames\u003c'foo-bar'\u003e({ 'foo-bar': true });\nclassNames\u003c'foo-bar'\u003e({ 'foo-bar': false });\nclassNames\u003c'foo' | 'bar'\u003e({ foo: true }, { bar: true });\nclassNames\u003c'foo' | 'bar'\u003e({ foo: true, bar: true });\nclassNames\u003c'foo' | 'bar'| 'duck' | 'baz' | 'quux'\u003e('foo', { bar: true, duck: false }, 'baz', { quux: true });\n\nimport {classNamesFunc } from 'classnames-generics';\n\nconst classNames = classNamesFunc\u003c'foo' | 'bar'\u003e();\n\nclassNames('foo', 'bar');\nclassNames('foo', { bar: true });\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiveguild%2Fclassnames-generics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factiveguild%2Fclassnames-generics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiveguild%2Fclassnames-generics/lists"}