string-tocamelcase

Convert string to camel case.


Keywords
string, to, camel, case
License
MIT
Install
npm install string-tocamelcase@0.1.2

Documentation

string-tocamelcase

NPM

Convert string to camel case.

const toCamelCase = require('string-tocamelcase');
// toCamelCase(<string>, [capitalize=0], [separator=/\W+/g])

toCamelCase('Western Ghats');
// 'westernGhats'
toCamelCase('cardamom--hills', 1);
// 'CardamomHills'
toCamelCase('EAstErn__ghAts', 1, '_');
// 'EasternGhats'