{"id":15506747,"url":"https://github.com/manovotny/chance-class-name","last_synced_at":"2025-06-12T08:03:00.904Z","repository":{"id":57157819,"uuid":"98348902","full_name":"manovotny/chance-class-name","owner":"manovotny","description":"A Chance.js mixin to generate class names.","archived":false,"fork":false,"pushed_at":"2019-09-08T23:12:18.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T09:16:49.205Z","etag":null,"topics":["chance","chancejs","class","classname","mixin","name"],"latest_commit_sha":null,"homepage":"","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/manovotny.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}},"created_at":"2017-07-25T20:51:24.000Z","updated_at":"2020-07-30T12:43:58.000Z","dependencies_parsed_at":"2022-09-07T20:33:18.870Z","dependency_job_id":null,"html_url":"https://github.com/manovotny/chance-class-name","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/manovotny/chance-class-name","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manovotny%2Fchance-class-name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manovotny%2Fchance-class-name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manovotny%2Fchance-class-name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manovotny%2Fchance-class-name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manovotny","download_url":"https://codeload.github.com/manovotny/chance-class-name/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manovotny%2Fchance-class-name/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259426817,"owners_count":22855541,"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":["chance","chancejs","class","classname","mixin","name"],"created_at":"2024-10-02T09:28:56.958Z","updated_at":"2025-06-12T08:03:00.878Z","avatar_url":"https://github.com/manovotny.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chance-class-name [![Build Status](https://travis-ci.org/manovotny/chance-class-name.svg?branch=master)](https://travis-ci.org/manovotny/chance-class-name)\n\n\u003e A [Chance.js mixin](http://chancejs.com/#mixin) to generate class names.\n\nClass names are generated according the [W3C CSS spec](https://stackoverflow.com/a/449000).\n\n## Install\n\n### NPM\n\n```\n$ npm i chance-class-name\n```\n\n### Yarn\n\n```\n$ yarn add chance-class-name\n```\n\n## Usage\n\n```js\nimport Chance from 'chance';\nimport className from 'chance-class-name';\n\nconst chance = new Chance();\n\nchance.mixin({\n    className\n});\n\nchance.className();\n```\n\nBy default, `chance-class-name` will return a randomly generated class name.\n\nClass names will be between 1 and 25 characters long.\n\nExample: `M-oYLdbPVMpbhjGrsLH`\n\n## License\n\nMIT © [Michael Novotny](http://manovotny.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanovotny%2Fchance-class-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanovotny%2Fchance-class-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanovotny%2Fchance-class-name/lists"}