string-dasherize
v1.0.0
Published
Converts a underscored or camelized string into an dasherized one
Downloads
2,122
Maintainers
Readme
string-dasherize
Converts a underscored or camelized string into an dasherized one
Install
$ npm install --save string-dasherize
Example
var stringDasherize = require('./index.js');
console.log(stringDasherize('FrontEnd'));
// -> -front-end
console.log(stringDasherize('front_end'));
// -> front-end
require('string-dasherize')(string)
Arguments:
string
: list be the single array
Returns: Converts a underscored or camelized string into an dasherized one
License
© 2016 Vikram Jadhav. MIT License