caseswitcher
v1.2.0
Published
Tool that switches provided word from camelCase to underscored_case and back
Downloads
3
Maintainers
Readme
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