{"id":13673222,"url":"https://github.com/denolib/camelcase","last_synced_at":"2025-08-14T15:31:49.317Z","repository":{"id":97205313,"uuid":"162884897","full_name":"denolib/camelcase","owner":"denolib","description":"Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar","archived":false,"fork":false,"pushed_at":"2019-02-17T12:41:42.000Z","size":5,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-10T11:55:10.690Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/denolib.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}},"created_at":"2018-12-23T11:27:18.000Z","updated_at":"2022-04-03T10:43:22.000Z","dependencies_parsed_at":"2024-01-05T21:00:01.826Z","dependency_job_id":"723dd2dc-d2e5-416a-a0b3-7de30466bf35","html_url":"https://github.com/denolib/camelcase","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denolib%2Fcamelcase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denolib%2Fcamelcase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denolib%2Fcamelcase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denolib%2Fcamelcase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denolib","download_url":"https://codeload.github.com/denolib/camelcase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229841239,"owners_count":18132559,"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-08-02T10:00:31.373Z","updated_at":"2024-12-15T15:40:03.686Z","avatar_url":"https://github.com/denolib.png","language":"TypeScript","readme":"Ported from https://github.com/sindresorhus/camelcase\n\n# camelcase\n\n![DenoLib](https://denolib.com/badge?scope=denolib\u0026repo=camelcase)\n[![Build Status](https://img.shields.io/travis/denolib/camelcase.svg?style=flat-square)](https://travis-ci.org/denolib/camelcase)\n\n\u003e Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`\n\n## Usage\n\n```ts\nimport { camelCase } from \"https://denolib.com/denolib/camelcase/mod.ts\";\n\ncamelCase(\"foo-bar\");\n//=\u003e \"fooBar\"\n\ncamelCase(\"foo_bar\");\n//=\u003e \"fooBar\"\n\ncamelCase(\"Foo-Bar\");\n//=\u003e \"fooBar\"\n\ncamelCase(\"Foo-Bar\", { pascalCase: true });\n//=\u003e \"FooBar\"\n\ncamelCase(\"--foo.bar\", { pascalCase: false });\n//=\u003e \"fooBar\"\n\ncamelCase(\"foo bar\");\n//=\u003e \"fooBar\"\n\nconsole.log(process.argv[3]);\n//=\u003e \"--foo-bar\"\ncamelCase(process.argv[3]);\n//=\u003e \"fooBar\"\n\ncamelCase([\"foo\", \"bar\"]);\n//=\u003e \"fooBar\"\n\ncamelCase([\"__foo__\", \"--bar\"], { pascalCase: true });\n//=\u003e \"FooBar\"\n```\n\n## API\n\n### camelCase(input, [options])\n\n#### input\n\nType: `string` `string[]`\n\nString to convert to camel case.\n\n#### options\n\nType: `Object`\n\n##### pascalCase\n\nType: `boolean`\u003cbr\u003e\nDefault: `false`\n\nUppercase the first character: `foo-bar` → `FooBar`\n","funding_links":[],"categories":["基础设施","Uncategorized","Modules","Libraries"],"sub_categories":["Deno 源","Uncategorized","Online Playgrounds","String utils","Assistants"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenolib%2Fcamelcase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenolib%2Fcamelcase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenolib%2Fcamelcase/lists"}