Package Exports
- regularcase
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (regularcase) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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