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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i caseswitcher

Weekly Downloads

3

Version

1.2.0

License

MIT

Last publish

Collaborators

  • n3u3w3lt