{"_id":"kebabcase-keys","_rev":"2-ff24340c9481be5158392a09cbce86de","name":"kebabcase-keys","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"kebabcase-keys","version":"1.0.0","description":"Convert object keys to kebab-case","license":"MIT","repository":{"type":"git","url":"git+https://github.com/mattii/kebabcase-keys.git"},"author":{"name":"Matthias Lohscheidt","url":"https://github.com/mattii"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava","bench":"matcha bench/bench.js"},"keywords":["map","obj","object","key","keys","value","values","val","iterate","kebabcase","kebab-case","kebab","case","dash","hyphen","dot","underscore","separator","string","text","convert","deep","recurse","recursive"],"dependencies":{"lodash.kebabcase":"^4.1.1","map-obj":"^3.0.0","quick-lru":"^1.0.0"},"devDependencies":{"ava":"^0.25.0","matcha":"^0.7.0","xo":"^0.23.0"},"xo":{"overrides":[{"files":"bench/bench.js","rules":{"import/no-unresolved":"off"}}]},"gitHead":"0d07036ace85b6fd3ab6f1b902867839d468a744","bugs":{"url":"https://github.com/mattii/kebabcase-keys/issues"},"homepage":"https://github.com/mattii/kebabcase-keys#readme","_id":"kebabcase-keys@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"mlohscheidt","email":"mail@mlohscheidt.de"},"dist":{"integrity":"sha512-SsAYzJjJj96kMgKg8dOolzaeRbZQLzdyftDBg69zwK61vMggK0pngdlmlkcdq7A2mIe3glymyi0+Jn29s2yAfw==","shasum":"829bd2753536853221981b1b293ceba09497cbc2","tarball":"https://registry.npmjs.org/kebabcase-keys/-/kebabcase-keys-1.0.0.tgz","fileCount":4,"unpackedSize":4655,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUDgGCRA9TVsSAnZWagAALMQP/3LwKLfOnM70Ow0TUUBy\nwon70FIu8hMhwg09Mx5eM3a4WFPvWwWCT7sk9vzxtu8Gj6enzj/lrkQ8KoqB\nuHgG+fyxjQZ1pjkeVidhjBvD/YKpCnf973JqpIOAjyXmSilbB8OOSpHW+WKq\nCJpcelDaQT+wprU+5f2Z1bzqJGwYJvIPGq01oPoTRSL0KmHxEMxmd5c5F5dG\nxnnjux8JS7EMu1mbW+t5v9xb8NGgXd3wh/g0CG+hFybV9kEnKyNAV4CIleTt\nGSzb6lxEDiDj62xF8sLRu/QdB0FAuSQp+exABQZUFZE/acTcanS4D6/xwjCM\nWl2x4l0dZ66vSochslCk+nD7d1D4wHk9bVlXcDwTXTfbD0/V7izKRgbjcoCD\n5cb8FXrqal5o1lSgvCDbCm7A5v81olCfHh2tsG2TVDwNqAjSn8l5X9JLes0l\nPiXwwC5KvPsq63P9yTmTCYYgjUPfzkq2/3PCP5mEOJxRIx0JGeUt6WwXt4NW\nPMzYlkv+6/5yvsZjLHBsyZPirSR++QwAf6os7a9D098DOscYGQ0hTI1vvVBc\nsYBRplTvSIHg42E9pB0F+406VjIp5qeqwnSTF/SL07b8hcuagx3Rzfe5HIEU\nqvug8wyfvVIZnjGHBj0m0kyHTtOUYY7sbwph1NKAuhk4fEZK5tfde8G5of3n\nqfpe\r\n=6Gb9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICMNlSWnZQeMvMwrvoRadoE7Xk2ooh8xaneZuITNuFrsAiBu2Y7odYW9DxureacESAjFIstJJ4qVrMdD2b6TcOU83g=="}]},"maintainers":[{"name":"mlohscheidt","email":"mail@mlohscheidt.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kebabcase-keys_1.0.0_1548761094390_0.36942051936620923"},"_hasShrinkwrap":false}},"time":{"created":"2019-01-29T11:24:54.390Z","1.0.0":"2019-01-29T11:24:54.505Z","modified":"2022-05-07T05:24:49.947Z"},"maintainers":[{"email":"matthias@picter.com","name":"mattiloh"}],"description":"Convert object keys to kebab-case","homepage":"https://github.com/mattii/kebabcase-keys#readme","keywords":["map","obj","object","key","keys","value","values","val","iterate","kebabcase","kebab-case","kebab","case","dash","hyphen","dot","underscore","separator","string","text","convert","deep","recurse","recursive"],"repository":{"type":"git","url":"git+https://github.com/mattii/kebabcase-keys.git"},"author":{"name":"Matthias Lohscheidt","url":"https://github.com/mattii"},"bugs":{"url":"https://github.com/mattii/kebabcase-keys/issues"},"license":"MIT","readme":"# kebabcase-keys [![Build Status](https://travis-ci.org/mattii/kebabcase-keys.svg?branch=master)](https://travis-ci.org/mattii/kebabcase-keys)\n\n> Convert object keys to kebab-case using [`lodash.kebabcase`](https://www.npmjs.com/package/lodash.kebabcase), forked from [camelcase-keys](https://github.com/sindresorhus/camelcase-keys) by Sindre Sorhus.\n\n\n## Install\n\n```\n$ npm install kebabcase-keys\n```\n\n\n## Usage\n\n```js\nconst kebabcaseKeys = require('kebabcase-keys');\n\n// Convert an object\nkebabcaseKeys({foo_bar: true});\n//=> {'foo-bar': true}\n\n// Convert an array of objects\nkebabcaseKeys([{fooBar: true}, {bar_foo: false}]);\n//=> [{'foo-bar': true}, {'bar-foo': false}]\n\nkebabcaseKeys({foo_bar: true, nested: {unicorn_rainbow: true}}, {deep: true});\n//=> {'foo-bar': true, nested: {'unicorn-rainbow': true}}\n```\n\n## API\n\n### kebabcaseKeys(input, [options])\n\n#### input\n\nType: `Object` `Object[]`\n\nObject or array of objects to kebab-case.\n\n#### options\n\nType: `Object`\n\n##### exclude\n\nType: `Array<string|RegExp>`<br>\nDefault: `[]`\n\nExclude keys from being kebab-cased.\n\n##### deep\n\nType: `boolean`<br>\nDefault: `false`\n\nRecurse nested objects and objects in arrays.\n\n\n## Related\n\n- [camelcase-keys](https://github.com/sindresorhus/camelcase-keys)\n- [snakecase-keys](https://github.com/bendrucker/snakecase-keys)\n\n\n## Credits\n\nThis is a fork from [camelcase-keys](https://github.com/sindresorhus/camelcase-keys) by Sindre Sorhus. I just integrated a different case-converter.\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\nMIT © [Matthias Lohscheidt](https://github.com/mattii)\n","readmeFilename":"readme.md"}