You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 months ago | |
|---|---|---|
| .. | ||
| node_modules/camelcase | 5 months ago | |
| LICENSE | 5 months ago | |
| README.md | 5 months ago | |
| index.js | 5 months ago | |
| package.json | 5 months ago | |
README.md
UpperCamelCase 
Convert a dash/dot/underscore/space separated string to UpperCamelCase:
foo-bar→FooBar
Install
$ npm install --save uppercamelcase
Usage
var upperCamelCase = require('uppercamelcase');
upperCamelCase('foo-bar');
//=> FooBar
upperCamelCase('foo_bar');
//=> FooBar
upperCamelCase('Foo-Bar');
//=> FooBar
upperCamelCase('--foo.bar');
//=> FooBar
upperCamelCase('__foo__bar__');
//=> FooBar
upperCamelCase('foo bar');
//=> FooBar
console.log(process.argv[3]);
//=> --foo-bar
upperCamelCase(process.argv[3]);
//=> FooBar
camelCase('foo', 'bar');
//=> 'FooBar'
camelCase('__foo__', '--bar');
//=> 'FooBar'
Related
camelcase- The lowerCamelCase variant
License
MIT © Sam Verschueren