{"id":22273020,"url":"https://github.com/rexerwang/case-modifier","last_synced_at":"2025-03-25T16:26:55.706Z","repository":{"id":57194681,"uuid":"217266773","full_name":"rexerwang/case-modifier","owner":"rexerwang","description":"Convert string to target CaseType, like: camelCase, snakeCase, properCase, constantCase...","archived":false,"fork":false,"pushed_at":"2019-10-24T13:57:17.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T03:26:28.289Z","etag":null,"topics":["camelcase","case-modifier","constantcase","propercase","snakecase"],"latest_commit_sha":null,"homepage":null,"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/rexerwang.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":"2019-10-24T09:54:32.000Z","updated_at":"2019-10-24T13:59:24.000Z","dependencies_parsed_at":"2022-09-16T05:14:28.942Z","dependency_job_id":null,"html_url":"https://github.com/rexerwang/case-modifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexerwang%2Fcase-modifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexerwang%2Fcase-modifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexerwang%2Fcase-modifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexerwang%2Fcase-modifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rexerwang","download_url":"https://codeload.github.com/rexerwang/case-modifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245498881,"owners_count":20625263,"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-modifier","constantcase","propercase","snakecase"],"created_at":"2024-12-03T13:09:21.448Z","updated_at":"2025-03-25T16:26:55.678Z","avatar_url":"https://github.com/rexerwang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003e\ncase-modifier\n\u003ca href=\"https://www.npmjs.com/package/case-modifier\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/case-modifier.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/case-modifier\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/case-modifier.svg\" alt=\"Version\"\u003e\u003c/a\u003e\n\u003c/h2\u003e\n\nConvert string to target CaseType, like: camelCase, snakeCase, properCase, constantCase\n\n## Install\n\n```\nnpm i case-modifier\n```\n\n## Usage\n\n```js\nimport * as CaseModifier from 'case-modifier'\n\n// type: camelCase\nCaseModifier.CASE_CAMEL\n\nCaseModifier.camelCase('we-will-rock-the-word') // weWillRockTheWord\n\n// type: snakeCase\nCaseModifier.CASE_SNAKE\nCaseModifier.snakeCase('we-will-rock-the-word') // we_will_rock_the_word\n\n// type: kebabCase\nCaseModifier.CASE_KEBAB\nCaseModifier.CASE_DASH\nCaseModifier.kebabCase('WeWillRockTheWord') // we-will-rock-the-word\n\n// type: properCase\nCaseModifier.CASE_PROPER\nCaseModifier.CASE_PASCAL\nCaseModifier.properCase('we-will-rock-the-word') // WeWillRockTheWord\n\n// type: constantCase\nCaseModifier.CASE_CONSTANT\nCaseModifier.constantCase('WeWillRockTheWord') // WE_WILL_ROCK_THE_WORD\n\n\n// covert(str, caseType)\nCaseModifier.convert('we-will-rock-the-word') // weWillRockTheWord\nCaseModifier.convert('we-will-rock-the-word', CaseModifier.CASE_PROPER) // WeWillRockTheWord\n\n\n// if not support, just return source string\nCaseModifier.convert('We will rock the word') // We will rock the word\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexerwang%2Fcase-modifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frexerwang%2Fcase-modifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexerwang%2Fcase-modifier/lists"}