Skip to content

Converts a underscored or camelized string into an dasherized one

License

Notifications You must be signed in to change notification settings

vikramcse/string-dasherize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

string-dasherize

Converts a underscored or camelized string into an dasherized one

Install

$ npm install --save string-dasherize

Example

var stringDasherize = require('string-dasherize');
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

About

Converts a underscored or camelized string into an dasherized one

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published