{"id":19440200,"url":"https://github.com/firede/case-it","last_synced_at":"2025-08-09T21:10:16.967Z","repository":{"id":32438284,"uuid":"133704975","full_name":"firede/case-it","owner":"firede","description":"{🐫camel,🔆constant,💠dot,🍢kebab,👍pascal,🐍snake,👾space} case it.","archived":false,"fork":false,"pushed_at":"2023-03-04T03:25:00.000Z","size":1426,"stargazers_count":38,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T15:58:30.024Z","etag":null,"topics":["camelcase","case","flow","pascalcase","snakecase","typescript","utility"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firede.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-05-16T18:01:06.000Z","updated_at":"2024-12-14T12:45:41.000Z","dependencies_parsed_at":"2024-06-18T21:22:17.821Z","dependency_job_id":"ee4323ee-426e-4556-9a95-26a10d81158d","html_url":"https://github.com/firede/case-it","commit_stats":{"total_commits":37,"total_committers":3,"mean_commits":"12.333333333333334","dds":0.3513513513513513,"last_synced_commit":"2c02c27bc682d2406db8df9fa8299715464419fb"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firede%2Fcase-it","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firede%2Fcase-it/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firede%2Fcase-it/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firede%2Fcase-it/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firede","download_url":"https://codeload.github.com/firede/case-it/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250719956,"owners_count":21476164,"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":["camelcase","case","flow","pascalcase","snakecase","typescript","utility"],"created_at":"2024-11-10T15:28:23.945Z","updated_at":"2025-04-24T22:33:27.439Z","avatar_url":"https://github.com/firede.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [![case-it](res/header.png)](https://github.com/firede/case-it)\n\n[![npm](https://img.shields.io/npm/v/case-it.svg)](https://www.npmjs.com/package/case-it)\n![ci workflow](https://github.com/firede/case-it/actions/workflows/ci.yml/badge.svg)\n[![License](https://img.shields.io/npm/l/case-it.svg)](./LICENSE.md)\n![npm bundle size(minified)](https://img.shields.io/bundlephobia/min/case-it.svg)\n![npm bundle size(minified + gzip)](https://img.shields.io/bundlephobia/minzip/case-it.svg)\n\nSimple case conversion for strings, ported from [`to-case`](https://github.com/ianstormtaylor/to-case).\n\n## Features\n\n- Official support type definitions - both TypeScript and Flowtype.\n- Single package, separate modules - easy to use, tiny bundles.\n- No unnecessary detection tools - Just use `str === caseIt(str)`.\n- Zero dependencies.\n\n## Installation\n\n```sh\nnpm install case-it\n```\n\n## Usage\n\nImport:\n\n```js\n// Import by the main module\nconst { camelCaseIt } = require(\"case-it\")\n\n// Using the `import` statement (TypeScript, Babel, etc.)\nimport { dotCaseIt } from \"case-it\"\n\n// Or just import the modules you need\nconst { constantCaseIt } = require(\"case-it/constant\")\n```\n\nCase conversion:\n\n```js\ncamelCaseIt(\"THIS_IS_A_STRING\")   // \"thisIsAString\"\nconstantCaseIt(\"thisIsAString\")   // \"THIS_IS_A_STRING\"\ndotCaseIt(\"thisIsAString\")        // \"this.is.a.string\"\nkebabCaseIt(\"ThisIsAString\")      // \"this-is-a-string\"\nnoCaseIt(\"thisIsAString\")         // \"this is a string\"\npascalCaseIt(\"this is a string\")  // \"ThisIsAString\"\nsnakeCaseIt(\"THIS_IS_A_STRING\")   // \"this_is_a_string\"\nspaceCaseIt(\"this_is_a_string\")   // \"this is a string\"\n```\n\nCase detection:\n\n```js\nconst str = \"THIS_IS_A_STRING\"\n\nconst strIsCamel = str === camelCaseIt(str)       // false\nconst strIsConstant = str === constantCaseIt(str) // true\n```\n\n## API\n\n### `camelCaseIt(str: string): string`\n\nConvert a `string` to camel case. (`\"case-it/camel\"`)\n\n### `constantCaseIt(str: string): string`\n\nConvert a `string` to constant case. (`\"case-it/constant\"`)\n\n### `dotCaseIt(str: string): string`\n\nConvert a `string` to dot case. (`\"case-it/dot\"`)\n\n### `kebabCaseIt(str: string): string`\n\nConvert a `string` to kebab case. (`\"case-it/kebab\"`)\n\n### `noCaseIt(str: string): string`\n\nRemove any starting case from a `string`, like camel or snake, but keep spaces and punctuation that may be important otherwise. (`\"case-it/no\"`)\n\n### `pascalCaseIt(str: string): string`\n\nConvert a `string` to pascal case. (`\"case-it/pascal\"`)\n\n### `snakeCaseIt(str: string): string`\n\nConvert a `string` to snake case. (`\"case-it/snake\"`)\n\n### `spaceCaseIt(str: string): string`\n\nConvert a `string` to space case. (`\"case-it/space\"`)\n\n## License\n\n### `case-it`\n\n[The MIT License (MIT)](./LICENSE.md#case-it) - Copyright (c) 2018-present, Firede\n\n### `to-case`\n\n[The MIT License (MIT)](./LICENSE.md#to-case) - Copyright (c) 2016, Ian Storm Taylor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirede%2Fcase-it","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirede%2Fcase-it","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirede%2Fcase-it/lists"}