{"name":"decamelize-keys","version":"1.0.0","description":"Convert object keys from camelCase to lowercase with a custom separator","license":"MIT","repository":{"type":"git","url":"git+https://github.com/dsblv/decamelize-keys.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"contributors":[{"name":"Dmirty Sobolev","email":"disobolev@icloud.com","url":"https://github.com/dsblv"}],"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["map","obj","object","key","keys","value","values","val","iterate","decamelize","decamelcase","lowercase","camelcase","camel-case","camel","case","dash","hyphen","dot","underscore","separator","string","text","convert"],"devDependencies":{"ava":"^0.3.0","xo":"^0.10.0"},"dependencies":{"decamelize":"^1.1.0","map-obj":"^1.0.0"},"gitHead":"e63a6b0a1c0e6c6bf7e4d0b40fca0d324c7f029b","bugs":{"url":"https://github.com/dsblv/decamelize-keys/issues"},"homepage":"https://github.com/dsblv/decamelize-keys#readme","_id":"decamelize-keys@1.0.0","_shasum":"4483de342a4139c2072ed8967b0c06aba89cf6e6","_from":".","_npmVersion":"3.3.4","_nodeVersion":"4.2.1","_npmUser":{"name":"dsblv","email":"disobolev@icloud.com"},"dist":{"shasum":"4483de342a4139c2072ed8967b0c06aba89cf6e6","tarball":"http://registry-npm.ywwl.com/decamelize-keys/download/decamelize-keys-1.0.0.tgz","integrity":"sha512-hfEY2YGzi74vga6MyUpL2wELSLvcIkpSo5R5v3YLUGcXFVVI+nF1aWWKdxXHq2cFpWz7XkR45WmuJ/agu6Edxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7vmlyUP6nkBvi9aGceN/MjzdVHLnlx1pyGobJj7jirAIgWHq/PL0vuFLVlf13//nx3Do8zT1sobjP3G/yMq5D3ew="}],"size":1788,"noattachment":false,"key":"/decamelize-keys/-/decamelize-keys-1.0.0.tgz"},"maintainers":[{"name":"dsblv","email":"disobolev@icloud.com"}],"directories":{},"readme":"# decamelize-keys\n\n> Convert object keys from camel case using [`decamelize`](https://github.com/sindresorhus/decamelize)\n\n## Install\n\n```sh\nnpm install decamelize-keys\n```\n\n## Usage\n\n```js\nimport decamelizeKeys from 'decamelize-keys';\n\n// Convert an object\ndecamelizeKeys({fooBar: true});\n//=> {foo_bar: true}\n\n// Convert an array of objects\ndecamelizeKeys([{fooBar: true}, {barFoo: false}]);\n//=> [{foo_bar: true}, {bar_foo: false}]\n```\n\n## API\n\n### decamelizeKeys(input, options?)\n\n#### input\n\nType: `object | object[]`\n\nAn object or array of objects to decamelize.\n\n#### options\n\nType: `object`\n\n##### separator\n\nType: `string`\\\nDefault: `'_'`\n\nThe character or string used to separate words.\n\n```js\nimport decamelizeKeys from 'decamelize-keys';\n\ndecamelizeKeys({fooBar: true});\n//=> {foo_bar: true}\n\ndecamelizeKeys({fooBar: true}, {separator: '-'});\n//=> {'foo-bar': true}\n```\n\n##### exclude\n\nType: `Array<string | RegExp>`\\\nDefault: `[]`\n\nExclude keys from being decamelized.\n\n##### deep\n\nType: `boolean`\\\nDefault: `false`\n\nRecurse nested objects and objects in arrays.\n\n```js\nimport decamelizeKeys from 'decamelize-keys';\n\ndecamelizeKeys({fooBar: true, nested: {unicornRainbow: true}}, {deep: true});\n//=> {foo_bar: true, nested: {unicorn_rainbow: true}}\n```\n\n## Related\n\n- [camelcase-keys](https://github.com/sindresorhus/camelcase-keys) - The inverse of this package.\n","publish_time":1445956442622,"_cnpm_publish_time":1445956442622,"dist-tags":{"latest":"2.1.0"}}