1.2.0 • Published 7 years ago

caseswitcher v1.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

caseswitcher

Switch from camelCase to underscore_case and back

Install by running:

npm i caseswitcher --save-dev

Usage example:

var switcher = require('caseswitcher')
let a = switcher('shall_you_convert_this_string_for_me')
let b = switcher('thisCamelWantsToBeAnUnderscore')
console.log(a) // output: shallYouConvertThisStringForMe
console.log(b) // output: this_camel_wants_to_be_an_underscore