{"id":19273908,"url":"https://github.com/rintoj/name-util","last_synced_at":"2025-02-23T20:45:03.711Z","repository":{"id":57307584,"uuid":"73935947","full_name":"rintoj/name-util","owner":"rintoj","description":"A utility script to convert a string into camel case, dashed name, class name or to capitalized name","archived":false,"fork":false,"pushed_at":"2023-02-14T11:00:57.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T04:36:39.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/rintoj.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-11-16T15:57:27.000Z","updated_at":"2023-02-14T07:53:21.000Z","dependencies_parsed_at":"2024-06-21T15:37:18.921Z","dependency_job_id":"c6c7365f-ffff-4737-8390-bf4020384a48","html_url":"https://github.com/rintoj/name-util","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":"0.33333333333333337","last_synced_commit":"7677699ed9c0cfe3b93b4f91d96e1305fad1f840"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fname-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fname-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fname-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fname-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rintoj","download_url":"https://codeload.github.com/rintoj/name-util/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240378873,"owners_count":19792039,"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-09T20:44:27.831Z","updated_at":"2025-02-23T20:45:03.675Z","avatar_url":"https://github.com/rintoj.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# name-util\n\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nA utility script to convert a string into camel case, dashed name, class name or to capitalized name\n\n## Install\n\n```sh\nnpm install name-util --save\n```\n\nor\n\n```sh\nyarn add name-util\n```\n\n## Usage\n\n```ts\nimport { toDashedName } from 'name-util'\n\ntoDashedName('backgroundColor') // returns 'background-color'\n```\n\n## API\n\n### toDashedName()\n\n```ts\nimport { toDashedName } from 'name-util'\n\ntoDashedName('backgroundColor') // returns 'background-color'\n```\n\n### toUnderscoredName()\n\n```ts\nimport { toUnderscoredName } from 'name-util'\n\ntoUnderscoredName('backgroundColor') // returns 'background_color'\n```\n\n### toCamelCase()\n\n```ts\nimport { toCamelCase } from 'name-util'\n\ntoCamelCase('background-color') // returns 'backgroundColor'\n```\n\n### toClassName()\n\n```ts\nimport { toClassName } from 'name-util'\n\ntoClassName('background-color') // returns 'BackgroundColor'\n```\n\n### capitalize()\n\n```ts\nimport { capitalize } from 'name-util'\n\ncapitalize('background-color') // returns 'Background-color'\n```\n\n### capitalizeWords()\n\n```ts\nimport { capitalizeWords } from 'name-util'\n\ncapitalizeWords('background-color') // returns 'Background Color'\n```\n\n## Test\n\n```sh\nnpm test\n```\n\n## Contributing\n\nContributions are very welcome! Just send a pull request. Feel free to contact me or checkout my\n[GitHub](https://github.com/rintoj) page.\n\n## Author\n\n**Rinto Jose** (rintoj)\n\nFollow me: [GitHub](https://github.com/rintoj) | [Facebook](https://www.facebook.com/rinto.jose) |\n[Twitter](https://twitter.com/rintoj) | [Google+](https://plus.google.com/+RintoJoseMankudy) |\n[Youtube](https://youtube.com/+RintoJoseMankudy)\n\n## Versions\n\n[Check CHANGELOG](https://github.com/rintoj/name-util/blob/master/CHANGELOG.md)\n\n## Automatic Release\n\nHere is an example of the release type that will be done based on a commit messages:\n\n| Commit message      | Release type          |\n| ------------------- | --------------------- |\n| fix: [comment]      | Patch Release         |\n| feat: [comment]     | Minor Feature Release |\n| perf: [comment]     | Major Feature Release |\n| doc: [comment]      | No Release            |\n| refactor: [comment] | No Release            |\n| chore: [comment]    | No Release            |\n\n## License\n\n```\nThe MIT License (MIT)\n\nCopyright (c) 2016 Rinto Jose (rintoj)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n``\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frintoj%2Fname-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frintoj%2Fname-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frintoj%2Fname-util/lists"}