{"_id":"snakeize","_rev":"294249","name":"snakeize","description":"recursively transform key strings from camel-case to underscore-style","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"nathan7","email":"nathan@nathan7.eu"}],"time":{"modified":"2021-06-03T18:55:28.000Z","created":"2013-03-26T20:11:46.728Z","0.1.0":"2015-05-13T00:23:28.164Z","0.0.1":"2013-03-26T20:45:25.431Z","0.0.0":"2013-03-26T20:11:46.728Z"},"users":{"esundahl":true},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"repository":{"type":"git","url":"git://github.com/nathan7/snakeize.git"},"versions":{"0.1.0":{"name":"snakeize","version":"0.1.0","description":"recursively transform key strings from camel-case to underscore-style","main":"index.js","devDependencies":{"tap":"~0.4.0","tape":"~0.3.0"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/nathan7/snakeize.git"},"homepage":"https://github.com/nathan7/snakeize","keywords":["snake-case","json","transform"],"testling":{"files":"test/*.js","browsers":{"iexplore":["6.0","7.0","8.0","9.0"],"chrome":["20.0"],"firefox":["10.0","15.0"],"safari":["5.1"],"opera":["12.0"]}},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","gitHead":"2751f5ebef523b16d3ef3b8dc1bf50aa712b61f1","bugs":{"url":"https://github.com/nathan7/snakeize/issues"},"_id":"snakeize@0.1.0","_shasum":"10c088d8b58eb076b3229bb5a04e232ce126422d","_from":".","_npmVersion":"2.7.6","_nodeVersion":"1.6.2","_npmUser":{"name":"nathan7","email":"nathan@nathan7.eu"},"maintainers":[{"name":"nathan7","email":"nathan@nathan7.eu"}],"dist":{"shasum":"10c088d8b58eb076b3229bb5a04e232ce126422d","size":2506,"noattachment":false,"key":"/snakeize/-/snakeize-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/snakeize/download/snakeize-0.1.0.tgz"},"directories":{},"publish_time":1431476608164,"_cnpm_publish_time":1431476608164,"_hasShrinkwrap":false},"0.0.1":{"name":"snakeize","version":"0.0.1","description":"recursively transform key strings from camel-case to underscore-style","main":"index.js","devDependencies":{"tap":"~0.4.0","tape":"~0.3.0"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/nathan7/snakeize.git"},"homepage":"https://github.com/nathan7/snakeize","keywords":["camel-case","json","transform"],"testling":{"files":"test/*.js","browsers":{"iexplore":["6.0","7.0","8.0","9.0"],"chrome":["20.0"],"firefox":["10.0","15.0"],"safari":["5.1"],"opera":["12.0"]}},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","readmeFilename":"readme.markdown","_id":"snakeize@0.0.1","dist":{"shasum":"e6121ec466de0460c96ae52d04cf35b4d4e2b6bf","size":2401,"noattachment":false,"key":"/snakeize/-/snakeize-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/snakeize/download/snakeize-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"nathan7","email":"npm@nathan7.eu"},"maintainers":[{"name":"nathan7","email":"nathan@nathan7.eu"}],"directories":{},"publish_time":1364330725431,"_cnpm_publish_time":1364330725431,"_hasShrinkwrap":false},"0.0.0":{"name":"snakeize","version":"0.0.0","description":"recursively transform key strings from camel-case to underscore-style","main":"index.js","devDependencies":{"tap":"~0.4.0","tape":"~0.3.0"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/nathan7/snakeize.git"},"homepage":"https://github.com/nathan7/snakeize","keywords":["camel-case","json","transform"],"testling":{"files":"test/*.js","browsers":{"iexplore":["6.0","7.0","8.0","9.0"],"chrome":["20.0"],"firefox":["10.0","15.0"],"safari":["5.1"],"opera":["12.0"]}},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","readmeFilename":"readme.markdown","_id":"snakeize@0.0.0","dist":{"shasum":"a86054b027b0bb9996add0ff14c2792c64ce73a9","size":2154,"noattachment":false,"key":"/snakeize/-/snakeize-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/snakeize/download/snakeize-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"nathan7","email":"npm@nathan7.eu"},"maintainers":[{"name":"nathan7","email":"nathan@nathan7.eu"}],"directories":{},"publish_time":1364328706728,"_cnpm_publish_time":1364328706728,"_hasShrinkwrap":false}},"readme":"# snakeize \n\nrecursively transform key strings from camel-case to underscore-style.\nDerives directly from [substack](https://github.com/substack)'s [camelize](https://github.com/substack/camelize)\n\n[![build status](https://secure.travis-ci.org/nathan7/snakeize.png)](http://travis-ci.org/nathan7/snakeize)\n\n[![browser support](https://ci.testling.com/nathan7/snakeize.png)](http://ci.testling.com/nathan7/snakeize)\n\n# example\n\n``` js\nvar snakeize = require('snakeize');\nvar obj = {\n    feeFieFoe: 'fum',\n    beepBoop: [\n        { 'abcXyz': 'mno' },\n        { 'FooBar': 'baz' },\n        { 'CheeseID': 'wensleydale' }\n    ]\n};\nvar res = snakeize(obj);\nconsole.log(JSON.stringify(res, null, 2));\n```\n\noutput:\n\n```\n{\n  \"fee_fie_foe\": \"fum\",\n  \"beep_boop\": [\n    {\n      \"abc_xyz\": \"mno\"\n    },\n    {\n      \"foo_bar\": \"baz\"\n    },\n    {\n      \"cheese_id\": \"wensleydale\"\n    }\n  ]\n}\n```\n\n# methods\n\n``` js\nvar snakeize = require('snakeize')\n```\n\n## snakeize(obj)\n\nConvert the key strings in `obj` from camel-case to underscore-stlye recursively.\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install snakeize\n```\n\nTo use in the browser, use [browserify](http://browserify.org) or [component](http://github.com/component):\n```\ncomponent install nathan7/snakeize\n```\n\n# license\n\nMIT\n","_attachments":{},"homepage":"https://github.com/nathan7/snakeize","bugs":{"url":"https://github.com/nathan7/snakeize/issues"},"license":"MIT"}