Convert a string to camel case.
var camelcase = require( '@stdlib/string/camelcase' );Converts a string to camel case.
var out = camelcase( 'foo bar' );
// returns 'fooBar'
out = camelcase( 'IS_MOBILE' );
// returns 'isMobile'
out = camelcase( 'Hello World!' );
// returns 'helloWorld'
out = camelcase( '--foo-bar--' );
// returns 'fooBar'var camelcase = require( '@stdlib/string/camelcase' );
var str = 'Hello World!';
var out = camelcase( str );
// returns 'helloWorld'
str = 'HELLO WORLD!';
out = camelcase( str );
// returns 'helloWorld'
str = 'To be, or not to be: that is the question.';
out = camelcase( str );
// returns 'toBeOrNotToBeThatIsTheQuestion'Usage: camelcase [options] [<string>]
Options:
-h, --help Print this message.
-V, --version Print the package version.
$ camelcase 'hello world!'
helloWorldTo use as a standard stream,
$ echo -n 'beEp booP' | camelcase
beEpBooP@stdlib/string/constantcase: convert a string to constant case.@stdlib/string/kebabcase: convert a string to kebab case.@stdlib/string/snakecase: convert a string to snake case.