uppercamelcase
Convert a dash/dot/underscore/space separated string to UpperCamelCase
Last updated 3 years ago by samverschueren .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install uppercamelcase 
SYNC missed versions from official npm registry.

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'

Related

License

MIT © Sam Verschueren

Current Tags

  • 3.0.0                                ...           latest (3 years ago)

4 Versions

  • 3.0.0                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 514
This Week 2,765
This Month 3,849
Last Day 2,251
Last Week 12,620
Last Month 55,858
Dependencies (1)
Dev Dependencies (2)
Dependents (345)

Copyright 2014 - 2016 © taobao.org |