snakeys
v1.0.0
Published
Create a snake_cased version of your camelCased object
Downloads
2
Readme
Snakeys -- transform a string to snakecase
Recursively transform an object's keys from camelCase to snake_case
Install
$ npm install --save snakeys
Usage
var snakeys = require('snakeys');
snakeys({ deep: { Ly: { nesTed: 'obj' } } }) // { deep: { Ly: { nes_ted: 'obj' } } }
snakeys({ wUt: {}, the: '', javaScript: null }) // { w_ut: {}, the: '', java_script: null }