camel2kebab
v0.0.2
Published
camelCase/PascalCase to kebab-case
Downloads
51
Readme
camel2kebab
camelCase/PascalCase to kebab-case
Install
$ npm install --save camel2kebab
Usage
const camel2kebab = require('camel2kebab');
camel2kebab('fontSize');
//=> 'font-size'
// if it's either camelCase or PascalCase
// we just return lowercased string
API
camel2kebab(input, toLowerCase)
input
Type: string
Input camelCased string
toLowerCase
true by default
Covert the whole input string to lowercase
License
MIT © EGOIST