{"id":21414879,"url":"https://github.com/magic/cases","last_synced_at":"2025-07-14T04:31:16.999Z","repository":{"id":65858875,"uuid":"184978784","full_name":"magic/cases","owner":"magic","description":"snake_case, camelCase, kebab-case, PascalCase, convert and test ","archived":false,"fork":false,"pushed_at":"2023-02-14T09:31:44.000Z","size":611,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T08:18:55.221Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magic.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":"2019-05-05T04:21:40.000Z","updated_at":"2025-06-09T19:06:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"f96b361a-f968-44a6-9f3c-4c6ed402d7f2","html_url":"https://github.com/magic/cases","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/magic/cases","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magic%2Fcases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magic%2Fcases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magic%2Fcases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magic%2Fcases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magic","download_url":"https://codeload.github.com/magic/cases/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magic%2Fcases/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265240090,"owners_count":23732938,"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-11-22T18:34:23.750Z","updated_at":"2025-07-14T04:31:16.627Z","avatar_url":"https://github.com/magic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## @magic/cases\n\nconvert between camelCase, PascalCase, snake_case, and kebab-case.\n\n[html-docs](https://magic.github.io/cases/)\n\n[![NPM version][npm-image]][npm-url]\n[![Linux Build Status][travis-image]][travis-url]\n[![Windows Build Status][appveyor-image]][appveyor-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n[![Greenkeeper badge][greenkeeper-image]][greenkeeper-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n\n[npm-image]: https://img.shields.io/npm/v/@magic/cases.svg\n[npm-url]: https://www.npmjs.com/package/@magic/cases\n[travis-image]: https://api.travis-ci.org/magic/cases.svg?branch=master\n[travis-url]: https://travis-ci.org/magic/cases\n[appveyor-image]: https://img.shields.io/appveyor/ci/magic/cases/master.svg\n[appveyor-url]: https://ci.appveyor.com/project/magic/cases/branch/master\n[coveralls-image]: https://coveralls.io/repos/github/magic/cases/badge.svg\n[coveralls-url]: https://coveralls.io/github/magic/cases\n[greenkeeper-image]: https://badges.greenkeeper.io/magic/cases.svg\n[greenkeeper-url]: https://badges.greenkeeper.io/magic/cases.svg\n[snyk-image]: https://snyk.io/test/github/magic/cases/badge.svg\n[snyk-url]: https://snyk.io/test/github/magic/cases\n\n- [install](#install)\n- [usage](#usage)\n- [changelog](#changelog)\n\n### \u003ca name=\"install\"\u003e\u003c/a\u003einstall\n\nbe in a nodejs project.\n\n```bash\nnpm i --save-dev @magic/cases\n```\n\n### \u003ca name=\"usage\"\u003e\u003c/a\u003eusage\n\n```javascript\nimport cases from '@magic/cases'\n\nconst string = 'some-case-string'\n\nconst camelized = cases.camel('some-case-string') // someCaseString\n\nconst snaked = cases.snake('some-case-string') // some_case_string\n\nconst pascaled = cases.pascal('some-case-string') // SomeCaseString\n\nconst kebabed = cases.kebab('some-case-string') // some-case-string\n\nconsole.log({ camelized, snaked, pascaled, kebabed })\n```\n\n#### \u003ca name=\"changelog\"\u003e\u003c/a\u003echangelog\n\n##### 0.0.1\n\nfirst commit, four case types work.\n\n##### 0.0.2\n\nadd kebabCaps and snakeCaps for KEBAB-CAPS and SNAKE_CAPS\n\n##### 0.0.3\n\nbump required node version to 14.2.0\n\n##### 0.0.4\n\nbump required node version to 14.15.4\n\n##### 0.0.5\n\nFIX: kebabcase handles camelCase strings that end with an uppercase character correctly\n(this fixes overflowX in @magic/css)\n\n##### 0.0.6\n\nupdate dependencies\n\n##### 0.0.7\n\nupdate dev dependencies\n\n##### 0.0.8\n\nupdate dependencies\n\n##### 0.0.9\n\nupdate development dependencies\n\n##### 0.0.10 - unreleased\n\n...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagic%2Fcases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagic%2Fcases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagic%2Fcases/lists"}