\begin{quote}
Convert a dash/dot/underscore/space separated string to camel\+Case or Pascal\+Case\+: {\ttfamily foo-\/bar} → {\ttfamily foo\+Bar} \end{quote}
Correctly handles Unicode strings.\hypertarget{md_sfcode_node_modules_camelcase_readme_autotoc_md4975}{}\doxysection{Install}\label{md_sfcode_node_modules_camelcase_readme_autotoc_md4975}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install camelcase }

\end{DoxyCode}


{\itshape If you need to support Firefox, stay on version 5 as version 6 uses regex features not available in Firefox.}\hypertarget{md_sfcode_node_modules_camelcase_readme_autotoc_md4976}{}\doxysection{Usage}\label{md_sfcode_node_modules_camelcase_readme_autotoc_md4976}

\begin{DoxyCode}{0}
\DoxyCodeLine{const camelCase = require('camelcase');}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase('foo-\/bar');}
\DoxyCodeLine{//=> 'fooBar'}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase('foo\_bar');}
\DoxyCodeLine{//=> 'fooBar'}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase('Foo-\/Bar');}
\DoxyCodeLine{//=> 'fooBar'}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase('розовый\_пушистый\_единороги');}
\DoxyCodeLine{//=> 'розовыйПушистыйЕдинороги'}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase('Foo-\/Bar', \{pascalCase: true\});}
\DoxyCodeLine{//=> 'FooBar'}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase('-\/-\/foo.bar', \{pascalCase: false\});}
\DoxyCodeLine{//=> 'fooBar'}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase('foo bar');}
\DoxyCodeLine{//=> 'fooBar'}
\DoxyCodeLine{}
\DoxyCodeLine{console.log(process.argv[3]);}
\DoxyCodeLine{//=> '-\/-\/foo-\/bar'}
\DoxyCodeLine{camelCase(process.argv[3]);}
\DoxyCodeLine{//=> 'fooBar'}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase(['foo', 'bar']);}
\DoxyCodeLine{//=> 'fooBar'}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase(['\_\_foo\_\_', '-\/-\/bar'], \{pascalCase: true\});}
\DoxyCodeLine{//=> 'FooBar'}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase('lorem-\/ipsum', \{locale: 'en-\/US'\});}
\DoxyCodeLine{//=> 'loremIpsum' }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_camelcase_readme_autotoc_md4977}{}\doxysection{API}\label{md_sfcode_node_modules_camelcase_readme_autotoc_md4977}
\hypertarget{md_sfcode_node_modules_camelcase_readme_autotoc_md4978}{}\doxysubsection{camel\+Case(input, options?)}\label{md_sfcode_node_modules_camelcase_readme_autotoc_md4978}
\hypertarget{md_sfcode_node_modules_camelcase_readme_autotoc_md4979}{}\doxysubsubsection{input}\label{md_sfcode_node_modules_camelcase_readme_autotoc_md4979}
Type\+: {\ttfamily string $\vert$ string\mbox{[}\mbox{]}}

String to convert to camel case.\hypertarget{md_sfcode_node_modules_camelcase_readme_autotoc_md4980}{}\doxysubsubsection{options}\label{md_sfcode_node_modules_camelcase_readme_autotoc_md4980}
Type\+: {\ttfamily object}\hypertarget{md_sfcode_node_modules_camelcase_readme_autotoc_md4981}{}\doxyparagraph{pascal\+Case}\label{md_sfcode_node_modules_camelcase_readme_autotoc_md4981}
Type\+: {\ttfamily boolean}\textbackslash{} Default\+: {\ttfamily false}

Uppercase the first character\+: {\ttfamily foo-\/bar} → {\ttfamily Foo\+Bar}\hypertarget{md_sfcode_node_modules_camelcase_readme_autotoc_md4982}{}\doxyparagraph{locale}\label{md_sfcode_node_modules_camelcase_readme_autotoc_md4982}
Type\+: {\ttfamily string $\vert$ string\mbox{[}\mbox{]}}\textbackslash{} Default\+: The host environment’s current locale.

The locale parameter indicates the locale to be used to convert to upper/lower case according to any locale-\/specific case mappings. If multiple locales are given in an array, the best available locale is used.


\begin{DoxyCode}{0}
\DoxyCodeLine{const camelCase = require('camelcase');}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase('lorem-\/ipsum', \{locale: 'en-\/US'\});}
\DoxyCodeLine{//=> 'loremIpsum'}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase('lorem-\/ipsum', \{locale: 'tr-\/TR'\});}
\DoxyCodeLine{//=> 'loremİpsum'}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase('lorem-\/ipsum', \{locale: ['en-\/US', 'en-\/GB']\});}
\DoxyCodeLine{//=> 'loremIpsum'}
\DoxyCodeLine{}
\DoxyCodeLine{camelCase('lorem-\/ipsum', \{locale: ['tr', 'TR', 'tr-\/TR']\});}
\DoxyCodeLine{//=> 'loremİpsum' }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_camelcase_readme_autotoc_md4983}{}\doxysection{camelcase for enterprise}\label{md_sfcode_node_modules_camelcase_readme_autotoc_md4983}
Available as part of the Tidelift Subscription.

The maintainers of camelcase and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. \href{https://tidelift.com/subscription/pkg/npm-camelcase?utm_source=npm-camelcase&utm_medium=referral&utm_campaign=enterprise&utm_term=repo}{\texttt{ Learn more.}}\hypertarget{md_sfcode_node_modules_camelcase_readme_autotoc_md4984}{}\doxysection{Related}\label{md_sfcode_node_modules_camelcase_readme_autotoc_md4984}

\begin{DoxyItemize}
\item \href{https://github.com/sindresorhus/decamelize}{\texttt{ decamelize}} -\/ The inverse of this module
\item \href{https://github.com/SamVerschueren/uppercamelcase}{\texttt{ uppercamelcase}} -\/ Like this module, but to Pascal\+Case instead of camel\+Case
\item \href{https://github.com/sindresorhus/titleize}{\texttt{ titleize}} -\/ Capitalize every word in string
\item \href{https://github.com/sindresorhus/humanize-string}{\texttt{ humanize-\/string}} -\/ Convert a camelized/dasherized/underscored string into a humanized one
\item \href{https://github.com/sindresorhus/camelcase-keys}{\texttt{ camelcase-\/keys}} -\/ Convert object keys to camel case 
\end{DoxyItemize}