Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

uppercamelcase

samverschueren360.4kMIT3.0.0TypeScript support: definitely-typed

Convert a dash/dot/underscore/space separated string to UpperCamelCase

camelcase, uppercamelcase, upper, camel, case

readme

UpperCamelCase Build Status

Convert a dash/dot/underscore/space separated string to UpperCamelCase: foo-barFooBar

Install

$ npm install --save uppercamelcase

Usage

const 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

upperCamelCase('foo', 'bar');
//=> 'FooBar'

upperCamelCase('__foo__', '--bar');
//=> 'FooBar'

License

MIT © Sam Verschueren