1.1.1 • Published 7 years ago

regularcase v1.1.1

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

This will convert a dash, dot, underscore, space and separated string to regularCase:: node-jsnodeJs

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