hyphenize
Normalize key for object. Convert string from unfitting string as a object key to fitting string in style of hyphen
Install
$ npm install --save hyphenize
Usage
var hyphenize = require('hyphenize');
hyphenize('lowerUpper');
hyphenize('lowerUpper');
hyphenize('_lowerUpper');
hyphenize('.lowerUpper');
hyphenize('/lowerUpper');
hyphenize(' /._lowerUpper');
hyphenize('lower-Upper');
hyphenize('lower Upper');
hyphenize('lower.Upper');
hyphenize('lower.Upper');
hyphenize('lower upper');
API
hyphenize(input)
input
Type: string
Target string
License
MIT © Jimmy Moon