1.0.0 • Published 8 years ago

string-dasherize v1.0.0

Weekly downloads
427
License
ISC
Repository
github
Last release
8 years ago

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