1 # camelcase [![Build Status](https://travis-ci.org/sindresorhus/camelcase.svg?branch=master)](https://travis-ci.org/sindresorhus/camelcase)
3 > Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
9 <a href="https://tidelift.com/subscription/pkg/npm-camelcase?utm_source=npm-camelcase&utm_medium=referral&utm_campaign=readme">Get professional support for 'camelcase' with a Tidelift subscription</a>
13 Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
22 $ npm install camelcase
29 const camelCase = require('camelcase');
40 camelCase('Foo-Bar', {pascalCase: true});
43 camelCase('--foo.bar', {pascalCase: false});
49 console.log(process.argv[3]);
51 camelCase(process.argv[3]);
54 camelCase(['foo', 'bar']);
57 camelCase(['__foo__', '--bar'], {pascalCase: true});
64 ### camelCase(input, [options])
68 Type: `string` `string[]`
70 String to convert to camel case.
81 Uppercase the first character: `foo-bar` → `FooBar`
86 To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
91 - [decamelize](https://github.com/sindresorhus/decamelize) - The inverse of this module
92 - [uppercamelcase](https://github.com/SamVerschueren/uppercamelcase) - Like this module, but to PascalCase instead of camelCase
93 - [titleize](https://github.com/sindresorhus/titleize) - Capitalize every word in string
94 - [humanize-string](https://github.com/sindresorhus/humanize-string) - Convert a camelized/dasherized/underscored string into a humanized one
99 MIT © [Sindre Sorhus](https://sindresorhus.com)