{"id":15687974,"url":"https://github.com/ultirequiem/camelcase","last_synced_at":"2025-05-06T20:43:40.617Z","repository":{"id":39543057,"uuid":"410971592","full_name":"UltiRequiem/camelcase","owner":"UltiRequiem","description":"🧶 Convert dash/dot/underscore/space separated string to camelCase","archived":false,"fork":false,"pushed_at":"2024-05-01T00:00:25.000Z","size":34,"stargazers_count":8,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-23T23:28:08.588Z","etag":null,"topics":["camelcase","deno","denoland","javascript","typescript"],"latest_commit_sha":null,"homepage":"https://camelcase.js.org","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/UltiRequiem.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":"2021-09-27T17:02:06.000Z","updated_at":"2023-11-04T12:36:19.000Z","dependencies_parsed_at":"2023-02-06T08:30:26.113Z","dependency_job_id":"978e9258-9b8a-4735-ae6a-a712e3d61c42","html_url":"https://github.com/UltiRequiem/camelcase","commit_stats":{"total_commits":27,"total_committers":3,"mean_commits":9.0,"dds":"0.37037037037037035","last_synced_commit":"5a5fa858a00ab1aa5078cf34097b884ee9b02f47"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fcamelcase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fcamelcase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fcamelcase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fcamelcase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UltiRequiem","download_url":"https://codeload.github.com/UltiRequiem/camelcase/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222679205,"owners_count":17021814,"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","deno","denoland","javascript","typescript"],"created_at":"2024-10-03T17:52:41.884Z","updated_at":"2024-11-02T06:03:10.684Z","avatar_url":"https://github.com/UltiRequiem.png","language":"TypeScript","funding_links":["https://patreon.com/UltiRequiem"],"categories":[],"sub_categories":[],"readme":"# Camel case\n\n[![Code Coverage](https://codecov.io/gh/ultirequiem/camelcase/branch/main/graph/badge.svg)](https://codecov.io/gh/ultirequiem/camelcase)\n[![Deno Doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/camelcase/mod.ts)\n\nConvert a dash/dot/underscore/space separated string to\n[**camelCase**](https://wikipedia.org/wiki/Camel_case) or\n[**PascalCase**](https://wiktionary.org/wiki/Pascal_case).\n\n**Correctly handles unicode strings.**\n\nIf you use this on untrusted user input, don't forget to limit the length to\nsomething reasonable.\n\n\u003e Based on the\n\u003e [Sindre Sorhus Camelcase Module](https://github.com/sindresorhus/camelcase),\n\u003e they have the same test suite and API, but this version is more than 3 times\n\u003e faster, see the benchmarks below!\n\n## Usage\n\nThe API is the same on all this platforms ✔️\n\n### [Deno 🦕](https://deno.land/x/camelcase)\n\n```javascript\nimport { camelCase } from \"https://deno.land/x/camelcase/mod.ts\";\n\ncamelCase(\"foo-bar\"); //=\u003e 'fooBar'\n\ncamelCase(\"foo_bar\"); //=\u003e 'fooBar'\n\ncamelCase(\"Foo-Bar\"); //=\u003e 'fooBar'\n\ncamelCase(\"розовый_пушистый_единорог\"); //=\u003e 'розовыйПушистыйЕдинорог'\n\ncamelCase(\"Foo-Bar\", { pascalCase: true }); //=\u003e 'FooBar'\n\ncamelCase(\"--foo.bar\", { pascalCase: false }); //=\u003e 'fooBar'\n\ncamelCase(\"Foo-BAR\", { preserveConsecutiveUppercase: true }); //=\u003e 'fooBAR'\n\ncamelCase(\"fooBAR\", { pascalCase: true, preserveConsecutiveUppercase: true }); //=\u003e 'FooBAR'\n\ncamelCase(\"foo bar\"); //=\u003e 'fooBar'\n\ncamelCase([\"foo\", \"bar\"]); //=\u003e 'fooBar'\n\ncamelCase([\"__foo__\", \"--bar\"], { pascalCase: true }); //=\u003e 'FooBar'\n\ncamelCase([\"foo\", \"BAR\"], {\n  pascalCase: true,\n  preserveConsecutiveUppercase: true,\n}); //=\u003e 'FooBAR'\n\ncamelCase(\"lorem-ipsum\", { locale: \"en-US\" }); //=\u003e 'loremIpsum'\n```\n\n### [Node.js 🐢🚀](https://npmjs.com/package/@ultirequiem/camelcase)\n\n```javascript\nimport { camelCase } from \"@ultirequiem/camelcase\";\n```\n\n### [Browser 🌐](https://developer.mozilla.org/en-US/docs/Glossary/Browser)\n\nYou can use any [CDN](https://en.wikipedia.org/wiki/Content_delivery_network) 🔥\n\nEg 👉\n[ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) ↔️\n[SkyPack](https://cdn.skypack.dev/@ultirequiem/camelcase) 🆚\n[Script Tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script)\n↔️ [JSDelivr](https://cdn.jsdelivr.net/npm/@ultirequiem/camelcase)\n\n## Documentation\n\nIs hosted on\n[Deno Doc](https://doc.deno.land/https://deno.land/x/camelcase/mod.ts) 📄\n\n## Benchmarks\n\nCheck the benchmark code on `bench.ts` ⚡\n\n\u003e [Using Deno's built-in benchmark runner](https://deno.land/manual/tools/benchmarker)\n\n```\nbenchmark                 time (avg)             (min … max)       p75       p99      p995\n------------------------------------------------------------ -----------------------------\nSindre Sorhus Module  257.01 µs/iter   (237.4 µs … 382.3 µs)  252.9 µs  331.5 µs  339.9 µs\nThis Module               78 µs/iter    (67.6 µs … 214.9 µs)   78.1 µs  152.6 µs  155.1 µs\n\nsummary\n  This Module\n   3.29x times faster than Sindre Sorhus Module\n```\n\n\u003e Version 2.1.0\n\nBenchmarks are run on GitHub Actions on each commit, you can see the latest runs\n[here](https://github.com/UltiRequiem/camelcase/actions/workflows/benchmark.yaml).\n\n## Support\n\nOpen an Issue, I will check it a soon as possible 👀\n\nIf you want to hurry me up a bit\n[send me a tweet](https://twitter.com/UltiRequiem) 😆\n\nConsider [supporting me on Patreon](https://patreon.com/UltiRequiem) if you like\nmy work 🙏\n\nDon't forget to start the repo ⭐\n\n## Authors\n\n[Eliaz Bobadilla](https://ultirequiem.com) - Creator and Maintainer 💪\n\nSee also the full list of\n[contributors](https://github.com/UltiRequiem/camelcase/contributors) who\nparticipated in this project ✨\n\n## Versioning\n\nWe use [Semantic Versioning](http://semver.org). For the versions available, see\nthe [tags](https://github.com/UltiRequiem/camelcase/tags) 🏷️\n\n## Licence\n\nLicensed under the MIT License 📄\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultirequiem%2Fcamelcase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fultirequiem%2Fcamelcase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultirequiem%2Fcamelcase/lists"}