regularcase
v1.1.1
Published
This will convert a dash, dot, underscore, space and separated string to regularCase: node-js : nodeJs
Downloads
8
Maintainers
Readme
This will convert a dash, dot, underscore, space and separated string to regularCase::
node-js
→nodeJs
Install
$ npm install --save regularcase
Usage
var regularCase = require('regularcase');
regularCase('node-js');
//=> nodeJs
regularCase('foo_js_script');
//=> nodeJsScript
regularCase('NODE-JS');
//=> nodeJs
regularCase('----node.js');
//=> nodeJs
regularCase('__node__js__');
//=> nodeJs
regularCase('node js java script');
//=> nodeJsJavaScript
console.log(process.argv[3]);
//=> --node-js
regularCase(process.argv[3]);
//=> nodeJs
regularCase('node', 'javascript','typescript','angularjs');
//=> fooJavascriptTypescriptAngularjs
regularCase('__javascript__', '--typescript');
//=> javascriptTypescript