caseswitcher

1.2.0 • Public • Published

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

Package Sidebar

Install

npm i caseswitcher

Weekly Downloads

1

Version

1.2.0

License

MIT

Last publish

Collaborators

  • n3u3w3lt