{"_id":"deep-map-keys","_rev":"11-7772c56299a7b343e51d49f61931774f","name":"deep-map-keys","description":"Transforms nested keys of complex objects","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"deep-map-keys","version":"1.0.0","description":"Transforms keys of a JSON-like object","main":"lib/index.js","scripts":{"test:lint":"eslint lib","test:unit":"istanbul cover _mocha","test":"npm run test:lint && npm run test:unit","coveralls":"cat coverage/lcov.info | coveralls"},"engines":{"node":">=0.10"},"keywords":["map","keys","deep","recursive","nested","object","array","json"],"author":{"name":"Akim McMath","email":"akim.elijah.mcmath@gmail.com"},"license":"MIT","devDependencies":{"chai":"^3.5.0","coffee-script":"^1.10.0","coveralls":"^2.11.9","eslint":"^2.12.0","istanbul":"^0.4.3","mocha":"^2.5.3","sinon":"^1.17.4","sinon-chai":"^2.8.0"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/akim-mcmath/deep-map-keys.git"},"bugs":{"url":"https://github.com/akim-mcmath/deep-map-keys/issues"},"homepage":"https://github.com/akim-mcmath/deep-map-keys#readme","gitHead":"d92ca9f8b62c195147724819b809d059a17757ae","_id":"deep-map-keys@1.0.0","_shasum":"8395e6ef0a6a275c81f6e0d6e12cb01fb6d83dfc","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"akim-mcmath","email":"akim.elijah.mcmath@gmail.com"},"dist":{"shasum":"8395e6ef0a6a275c81f6e0d6e12cb01fb6d83dfc","tarball":"https://registry.npmjs.org/deep-map-keys/-/deep-map-keys-1.0.0.tgz","integrity":"sha512-vPjarvac+tKuB2WDVl0cMgUgJz4/zj90B60hOvzm0wmuz77ilzK1I5vFXASUPVgh09FWFdCizAHc4lczkMaD9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB+hhG3L3UnRx1cnHEKnhb+tK5/whAoYnPMBWRmK/FjFAiEA3Vd3JVGoyBzclWpQgizGRkk+uwyqVSkc8V31Xp95/Yw="}]},"maintainers":[{"name":"akim-mcmath","email":"akim.elijah.mcmath@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/deep-map-keys-1.0.0.tgz_1465889623200_0.18530792463570833"},"directories":{}},"1.1.0":{"name":"deep-map-keys","version":"1.1.0","description":"Transforms nested keys of complex objects","main":"lib/index.js","typings":"lib/index.d.ts","scripts":{"build:compile":"tsc","build:remove":"rimraf lib","build":"npm run build:remove && npm run build:compile","test:lint":"tslint 'src/**/*.ts'","test:unit":"istanbul cover -e .ts -x '*.test.ts' _mocha -- 'src/**/*.test.ts' --compilers ts:ts-node/register","test:report":"npm test && open coverage/lcov-report/index.html","test":"npm run test:lint && npm run test:unit","ci:typings":"typings install","ci:coveralls":"cat coverage/lcov.info | coveralls"},"engines":{"node":">=0.10"},"keywords":["map","keys","deep","recursive","nested","object","array","json","typescript","typings"],"author":{"name":"Akim McMath","email":"akim.elijah.mcmath@gmail.com"},"license":"MIT","devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"1.0.0-alpha.2","mocha":"^2.5.3","rimraf":"^2.5.2","sinon":"^1.17.4","sinon-chai":"^2.8.0","ts-node":"^0.9.1","tslint":"^3.11.0","typescript":"^1.8.10","typings":"^1.1.0"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/akim-mcmath/deep-map-keys.git"},"bugs":{"url":"https://github.com/akim-mcmath/deep-map-keys/issues"},"homepage":"https://github.com/akim-mcmath/deep-map-keys#readme","gitHead":"4b411f5e2ddc6c72c278e7cee67e554369fadb09","_id":"deep-map-keys@1.1.0","_shasum":"133a51a7edf43fd7b9b5464923260457a6e186e5","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"akim-mcmath","email":"akim.elijah.mcmath@gmail.com"},"dist":{"shasum":"133a51a7edf43fd7b9b5464923260457a6e186e5","tarball":"https://registry.npmjs.org/deep-map-keys/-/deep-map-keys-1.1.0.tgz","integrity":"sha512-zY8AUbCsoW0TqfLwZ0B1Axqm+tu2Z8ufm6qEeVV2ehU3XSLGK23HlhvLMswkDlX53sKRT4UygF69c28KIhol4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoAsM6Fkg5fnoRS2IqML7dmtWOSB+w+vVrK6lu3azRywIhAPcndcdEJCH9D0TTcJF9gMhMfZ8HZzCPrln8WZsSHyc4"}]},"maintainers":[{"name":"akim-mcmath","email":"akim.elijah.mcmath@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/deep-map-keys-1.1.0.tgz_1465988816028_0.651460797060281"},"directories":{}},"1.1.1":{"name":"deep-map-keys","version":"1.1.1","description":"Transforms nested keys of complex objects","main":"lib/index.js","typings":"lib/index.d.ts","scripts":{"build:compile":"tsc","build:remove":"rimraf lib","build":"npm run build:remove && npm run build:compile","test:lint":"tslint 'src/**/*.ts'","test:unit":"istanbul cover -e .ts -x '*.test.ts' _mocha -- 'src/**/*.test.ts' --compilers ts:ts-node/register","test:report":"npm test && open coverage/lcov-report/index.html","test":"npm run test:lint && npm run test:unit","ci:typings":"typings install","ci:coveralls":"cat coverage/lcov.info | coveralls"},"engines":{"node":">=0.10"},"keywords":["map","keys","deep","recursive","nested","object","array","json","typescript","typings"],"author":{"name":"Akim McMath","email":"akim.elijah.mcmath@gmail.com"},"license":"MIT","devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"1.0.0-alpha.2","mocha":"^2.5.3","rimraf":"^2.5.2","sinon":"^1.17.4","sinon-chai":"^2.8.0","ts-node":"^0.9.1","tslint":"^3.11.0","typescript":"^1.8.10","typings":"^1.1.0"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/akim-mcmath/deep-map-keys.git"},"bugs":{"url":"https://github.com/akim-mcmath/deep-map-keys/issues"},"homepage":"https://github.com/akim-mcmath/deep-map-keys#readme","gitHead":"12aca80b7bac958b41e7d91df34e483c6a4a18ac","_id":"deep-map-keys@1.1.1","_shasum":"ba319d82b1948a1a37eaf4608fcae24317d37157","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"akim-mcmath","email":"akim.elijah.mcmath@gmail.com"},"dist":{"shasum":"ba319d82b1948a1a37eaf4608fcae24317d37157","tarball":"https://registry.npmjs.org/deep-map-keys/-/deep-map-keys-1.1.1.tgz","integrity":"sha512-+EMqsKwxOyk+wsMUsH1W9e9hUinsaZmW6Q0mgu93qO+nHOiOW5kwkYPpaeS5SN2fsrg1Qya20g3dF5QlwZCFYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChrwxaJNjTp9XgZk8mT7BUojPZ2kcmxV2WBEnjzvu+wgIhAMOaKx1MoT8tKtQis5X0n+8Nj8vEy1NaC4P66Qxz4J1j"}]},"maintainers":[{"name":"akim-mcmath","email":"akim.elijah.mcmath@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/deep-map-keys-1.1.1.tgz_1466001228793_0.7670861179940403"},"directories":{}},"1.1.2":{"name":"deep-map-keys","version":"1.1.2","description":"Transforms nested keys of complex objects","main":"lib/index.js","typings":"lib/index.d.ts","scripts":{"build:compile":"tsc","build:remove":"rimraf lib","build":"npm run build:remove && npm run build:compile","test:lint":"tslint 'src/**/*.ts'","test:unit":"istanbul cover -e .ts -x '*.test.ts' _mocha -- 'src/**/*.test.ts' --compilers ts:ts-node/register","test:report":"npm test && open coverage/lcov-report/index.html","test":"npm run test:lint && npm run test:unit","ci:typings":"typings install","ci:coveralls":"cat coverage/lcov.info | coveralls"},"engines":{"node":">=0.10"},"keywords":["map","keys","deep","recursive","nested","object","array","json","typescript","typings"],"author":{"name":"Akim McMath","email":"akim.elijah.mcmath@gmail.com"},"license":"MIT","devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"1.0.0-alpha.2","mocha":"^2.5.3","rimraf":"^2.5.2","sinon":"^1.17.4","sinon-chai":"^2.8.0","ts-node":"^0.9.1","tslint":"^3.11.0","typescript":"^1.8.10","typings":"^1.1.0"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/akim-mcmath/deep-map-keys.git"},"bugs":{"url":"https://github.com/akim-mcmath/deep-map-keys/issues"},"homepage":"https://github.com/akim-mcmath/deep-map-keys#readme","gitHead":"54b095396ce8b1277c1dd04b79bbf75d9fe1cc98","_id":"deep-map-keys@1.1.2","_shasum":"72aade8e3ee50345ffc34d1a38b559f50c9f28c4","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"akim-mcmath","email":"akim.elijah.mcmath@gmail.com"},"dist":{"shasum":"72aade8e3ee50345ffc34d1a38b559f50c9f28c4","tarball":"https://registry.npmjs.org/deep-map-keys/-/deep-map-keys-1.1.2.tgz","integrity":"sha512-y6zhKF3v7tStBxUXqTPbJ32VmkULZDnIQY87VuCt1dIY4pa4/n3CPei5XdTLxb1LkhXj1a5u0SvU7E+gbz8Qjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEseGi1R1yBome3MCcXW0F9d9z0cxRK0W2SB/8wqyihKAiEA28RFqNsPn0Bt8c2iYrJTuold0KamztN/+fYT8xeWxRc="}]},"maintainers":[{"name":"akim-mcmath","email":"akim.elijah.mcmath@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/deep-map-keys-1.1.2.tgz_1466041680507_0.19182838965207338"},"directories":{}},"1.2.0":{"name":"deep-map-keys","version":"1.2.0","description":"Transforms nested keys of complex objects","main":"lib/index.js","typings":"lib/index.d.ts","scripts":{"build:compile":"tsc","build:remove":"rimraf lib","build":"npm run build:remove && npm run build:compile","test:lint":"tslint 'src/**/*.ts'","test:unit":"istanbul cover -e .ts -x '*.test.ts' _mocha -- src --opts mocha.opts","test:report":"npm test && open coverage/lcov-report/index.html","test":"npm run test:lint && npm run test:unit","ci:typings":"typings install","ci:coveralls":"cat coverage/lcov.info | coveralls"},"engines":{"node":">=0.10"},"keywords":["map","keys","deep","recursive","nested","object","array","circular","json","typescript","typings"],"author":{"name":"Akim McMath","email":"akim.elijah.mcmath@gmail.com"},"license":"MIT","devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"1.0.0-alpha.2","mocha":"^2.5.3","rimraf":"^2.5.2","sinon":"^1.17.4","sinon-chai":"^2.8.0","ts-node":"^0.9.1","tslint":"^3.11.0","typescript":"^1.8.10","typings":"^1.1.0"},"dependencies":{"es6-weak-map":"^2.0.1","lodash":"^4.13.1"},"repository":{"type":"git","url":"git+https://github.com/akim-mcmath/deep-map-keys.git"},"bugs":{"url":"https://github.com/akim-mcmath/deep-map-keys/issues"},"homepage":"https://github.com/akim-mcmath/deep-map-keys#readme","gitHead":"0a0445db30ff90889891b44007d6d81811c24a7c","_id":"deep-map-keys@1.2.0","_shasum":"43418b828ca43d261a8e877b4927e49d0c478cd9","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"akim-mcmath","email":"akim.elijah.mcmath@gmail.com"},"dist":{"shasum":"43418b828ca43d261a8e877b4927e49d0c478cd9","tarball":"https://registry.npmjs.org/deep-map-keys/-/deep-map-keys-1.2.0.tgz","integrity":"sha512-rKAuyMoOTbsrJXqkaH/k7j8qcKRXjurN5TZqo5S2lEyk/EdmGo5erOOHeZdLBU3CdV9rmD7apr7A26chdfaRew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID+OsrXFchzP1p5CmzYg/1BPd4DQJErHzkVAkfUweKjrAiEAwWHIIS+ElANJmlAqaBxmJwvtTzzbBIJUMGrC6ZuA8Z0="}]},"maintainers":[{"name":"akim-mcmath","email":"akim.elijah.mcmath@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/deep-map-keys-1.2.0.tgz_1466379936644_0.6551290594507009"},"directories":{}},"2.0.0":{"name":"deep-map-keys","version":"2.0.0","description":"Transforms nested keys of complex objects","main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"clean":"rimraf lib","build":"npm run clean && tsc","test:lint":"tslint 'src/**/*.ts'","test:unit":"istanbul cover -e .ts -x '*.test.ts' _mocha -- src --opts mocha.opts","test:report":"npm test && open coverage/lcov-report/index.html","test":"npm run test:lint && npm run test:unit","coveralls":"cat coverage/lcov.info | coveralls"},"engines":{"node":">=6"},"keywords":["map","keys","deep","recursive","nested","object","array","circular","json","typescript","typings"],"author":{"name":"Akim McMath","email":"akim@mcmath.io","url":"http://www.mcmath.io/"},"license":"MIT","devDependencies":{"@types/chai":"^4.1.7","@types/mocha":"^5.2.5","@types/sinon":"^7.0.5","@types/sinon-chai":"^3.2.2","chai":"^4.2.0","coveralls":"^3.0.2","istanbul":"1.0.0-alpha.2","mocha":"^5.2.0","rimraf":"^2.5.2","sinon":"^7.2.3","sinon-chai":"^3.3.0","ts-node":"^8.0.2","tslint":"^5.12.1","typescript":"^3.2.4"},"dependencies":{"@types/es6-weak-map":"^1.2.0","@types/lodash":"^4.14.120","es6-weak-map":"^2.0.1","lodash":"^4.13.1"},"repository":{"type":"git","url":"git+https://github.com/mcmath/deep-map-keys.git"},"bugs":{"url":"https://github.com/mcmath/deep-map-keys/issues"},"homepage":"https://github.com/mcmath/deep-map-keys#readme","gitHead":"b63d2a17c8f9698616b1f3a9a16cfa1f3917f3c7","_id":"deep-map-keys@2.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.8.0","_npmUser":{"name":"akim-mcmath","email":"mcmath@hotmail.com"},"dist":{"integrity":"sha512-7UrWjqz6CzOt3AIFUFztGXgd3Yis8ZmsMY2Ywf4qnr4r2WQGVih+vPLuHe9RBSBWX4IJUdPSUt3Illz+wZdgcQ==","shasum":"8a30dc3418729167df3984d7740591facbc28ac8","tarball":"https://registry.npmjs.org/deep-map-keys/-/deep-map-keys-2.0.0.tgz","fileCount":9,"unpackedSize":12178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcT65FCRA9TVsSAnZWagAA5y4P/1HgF6keeDcWVucvSHQ6\nDz1P78WQ/41wX8zovsjt0AXkpe2RtHcyX89wBCz23Ohs7f15fVVp3DnNYaOq\nbNDo+Z5uz/pkTQ7BVuShpwF9/To9SmFae3swa3aLIsqxMlxlOWGMCqK/lYJ9\nrC3xyW5vX/z2OtQ/NRYETsRw3w7ORNqAL7P6EJgLae6huv9oyxFqheiu7x2s\nXabySEYyxOxJw2Xcb4Y5n3NueBYahpNEY7/2a+aC5lwmG44Xd+sxRm5fC3vq\n9633K0ubFJsDKpwRbNWGPVy2RiJL0IyuqB6oPg3jzdbaknsGhtPQ2v32P7UU\naI9aNvS3AVR8jL+dGtt+7gz/287ALPFHgg8svdvdp3a5C7TVRBVkH5mpR4dK\nQ1Iom3o3ms6CNOK39hRJhgkT8Qe+WT5XPHcEuFoBXDvIHt0BTPnPWjXHdnof\n5UA73EL03ds0ksWDGjh8txBsEDGxuayjrJRGl92lgd26uwMFrvev9W+WlqOk\n3rzFX8EqIZw+Uw8ySSC1i6eXYYenZ4yvYPuEFhTe+T7A0flscrRJbisZzn4/\n0BbBoHd882GYhw2qmaylfIwqrBVAD0rEqNCzm2kC35oOZkIr4ZGCjPGoAD7e\nq/6+sPzPx/dsG2YqwiFlQXZ+QDC7oyGUvs9jn0/Pqhb/lpBGjv5LvPSrYC7w\nyW+2\r\n=I91b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLcQXnP843VuTYQ5TUYuLcbitBmqnZGA9+BQ7XBijoxwIhAPMyaH2JvHXlH/y7shVwJM+Hf2L15UVqgLDg57V6Pgjo"}]},"maintainers":[{"name":"akim-mcmath","email":"akim.elijah.mcmath@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deep-map-keys_2.0.0_1548725828576_0.5155036540136977"},"_hasShrinkwrap":false},"2.0.1":{"name":"deep-map-keys","version":"2.0.1","description":"Transforms nested keys of complex objects","main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"clean":"rimraf lib","build":"npm run clean && tsc","test:lint":"tslint 'src/**/*.ts'","test:unit":"istanbul cover -e .ts -x '*.test.ts' _mocha -- src --opts mocha.opts","test:report":"npm test && open coverage/lcov-report/index.html","test":"npm run test:lint && npm run test:unit","coveralls":"cat coverage/lcov.info | coveralls"},"engines":{"node":">=6"},"keywords":["map","keys","deep","recursive","nested","object","array","circular","json","typescript","typings"],"author":{"name":"Akim McMath","email":"akim@mcmath.io","url":"http://www.mcmath.io/"},"license":"MIT","devDependencies":{"@types/chai":"^4.1.7","@types/es6-weak-map":"^1.2.0","@types/lodash":"^4.14.120","@types/mocha":"^5.2.5","@types/sinon":"^7.0.5","@types/sinon-chai":"^3.2.2","chai":"^4.2.0","coveralls":"^3.0.2","istanbul":"1.0.0-alpha.2","mocha":"^5.2.0","rimraf":"^2.5.2","sinon":"^7.2.3","sinon-chai":"^3.3.0","ts-node":"^8.0.2","tslint":"^5.12.1","typescript":"^3.2.4"},"dependencies":{"es6-weak-map":"^2.0.1","lodash":"^4.13.1"},"repository":{"type":"git","url":"git+https://github.com/mcmath/deep-map-keys.git"},"bugs":{"url":"https://github.com/mcmath/deep-map-keys/issues"},"homepage":"https://github.com/mcmath/deep-map-keys#readme","gitHead":"4a2204554b31d1a32b761468391fc770cdfa4a4d","_id":"deep-map-keys@2.0.1","_npmVersion":"6.5.0","_nodeVersion":"11.8.0","_npmUser":{"name":"akim-mcmath","email":"mcmath@hotmail.com"},"dist":{"integrity":"sha512-hvsUEzDow++fTMwM2f2S7ttG39Y20mprBGwsydPpgmHwPQGwG10KJW44JgYVImJtXlDY983jIiqU9W2+DS2yzg==","shasum":"a61d6bf1dee01de732d6ca6667ed27303580d7b3","tarball":"https://registry.npmjs.org/deep-map-keys/-/deep-map-keys-2.0.1.tgz","fileCount":9,"unpackedSize":12183,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcT8DiCRA9TVsSAnZWagAAJzkP/2qm9A/8/Ib0VZekYh9/\n5R4LuC95XQlnqb+p5MV3DGI2qPG8qqgLDTNP5mPZKtRF/l/88+a9jUAhbzHa\nz1Kr4I4XmHEJnv7V4jBfCxTa4MvZtjYsc9bgkwK0WbgwaNaoYAPMpeHp7z7z\nRh+s0wEQT+bjzlTXN0fMsIDznAEczIibZXsYoX4rW1MhqSUOFmA5R7T2jykp\nc7E4sREn3nOB0U4/N3+0miHhd+CqGfEJhMf6FKkbBH84Hp+rHMtYQn3NtRRZ\nOMEIps2qBxKbnLdRX+H3ncEpe8SUsJ/D4Awak6tdC+2fpWQ5cBeaKcdofjd/\nwLVRaa8gMk3LpI/bWVqY5L5SlBws1YoULcpAaXSn0R7Z7Xl5YAPLNbRlfRXD\nOIMjE8OnFXfnvk1/DQyn2cc6cCN43RLmnZLGHoYUtjQQWWYGk3G1Zb9nsCO3\nzeDgtACD/FX5l4fe34css+ubtesi3iIZXxnxDHduzfbdWqIaiujN8unWVapj\nPjImmBvFgWawqJHvPOkdxkdBwbfQsx+2f0hbQqUOnZH+QcEs26PAKut1uC0a\np/n4wW71KMIZP9ud3BucO++GIXpmH6kTWcQBXnx15wVIe+kIcgFKcs9GsF3o\nItEXbLy9Hnx7iPKxfxd+Dr6Q3OxFOi95j4zScRbiU5B7t2ljY2Nnw5r5m1pt\ngtP1\r\n=cMiy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDajWOW5iFx1ubXyHFlNvqrFxC7tPFvbdnm31ndCMHOsgIhANPZdl9/HdHfz9Jju6OOkqkeY6/gaTp7nsl5UjZ+44ik"}]},"maintainers":[{"name":"akim-mcmath","email":"akim.elijah.mcmath@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deep-map-keys_2.0.1_1548730594034_0.41400421219863026"},"_hasShrinkwrap":false}},"readme":"# Deep Map Keys\n\n[![Version][version-badge]][npm]\n[![License][license-badge]][license]\n[![Build][build-badge]][travis]\n[![Coverage][coverage-badge]][coveralls]\n\n[Install](#install) | [Usage](#usage) | [API](#api) | [TypeScript](#typescript) | [License](#license)\n\n**Deep Map Keys** recurses through an object and transforms its keys &ndash; and\nthe keys of any nested objects &ndash; according to some function. Circular\nreferences are supported.\n\nTo transform the *values* of an object rather than its keys, use\n[Deep Map][deep-map].\n\n## Install\n\nInstall Deep Map Keys via [npm][npm].\n\n```sh\nnpm install --save deep-map-keys\n```\n\n## Usage\n\nSuppose we want to change the keys of an object from [snake case][snake-case] to\n[camel case][camel-case]. We can do something like this:\n\n```js\nconst deepMapKeys = require('deep-map-keys');\n\nlet comment = {\n  comment_id: 42,\n  user_id: 1024,\n  user_name: 'Mufasa',\n  content: 'You deliberately disobeyed me.',\n  viewed_by: [\n    { user_id: 3820, user_name: 'Rafiki' },\n    { user_id: 8391, user_name: 'Zazu' }\n  ]\n};\n\nfunction snakeToCamel(key) {\n  return key.replace(/_(\\w)/g, (match, char) => char.toUpperCase());\n}\n\nlet result = deepMapKeys(comment, snakeToCamel);\n```\n\nAnd the result will look like this:\n\n```js\n{\n  commentId: 42,\n  userId: 1024,\n  userName: 'Mufasa',\n  content: 'You deliberately disobeyed me.',\n  viewedBy: [\n    { userId: 3820, userName: 'Rafiki' },\n    { userId: 8391, userName: 'Zazu' }\n  ]\n}\n```\n\n## API\n\n#### `deepMapKeys(object, mapFn, [options])`\n\n#### Parameters\n\n<table>\n  <thead>\n    <tr>\n      <th align=\"left\">Param</th>\n      <th align=\"left\">Type</th>\n      <th align=\"left\">Description</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>object</td>\n      <td><code>any</code></td>\n      <td>\n        The object whose keys are to be transformed. Typically, this will be\n        a complex object containing other nested objects. This object may be an\n        <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\">\n        <code>Array</code></a>, in which case the keys of any objects it\n        contains will be transformed. The object may contain circular\n        references.\n      </td>\n    </tr>\n    <tr>\n      <td>mapFn</td>\n      <td><code>function</code></td>\n      <td>\n        The function used to transform each key. The function is\n        called with two arguments:\n        <ul>\n          <li>\n            <strong>key</strong> &lt;<code>string</code>&gt;\n            The key being transformed\n          </li>\n          <li>\n            <strong>value</strong> &lt;<code>any</code>&gt;\n            The value of the node whose key is being transformed\n          </li>\n        </ul>\n        The return value determines the new name of the key, and must therefore\n        be a string.\n      </td>\n    </tr>\n    <tr>\n      <td>[options]</td>\n      <td><code>object</code></td>\n      <td>\n        An optional options object. The following option is accepted:\n        <ul>\n          <li>\n            <strong>thisArg</strong> &lt;<code>any=undefined</code>&gt;\n            Sets the value of\n            <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this\"><code>this</code></a>\n            within <code>mapFn()</code>\n          </li>\n        </ul>\n      </td>\n    </tr>\n  </tbody>\n</table>\n\n#### Returns\n\nReturns a new object.\n\n## TypeScript\n\n[TypeScript][typescript] declarations are included in the package. Just import\nthe module, and things will just work.\n\nThe shape of the returned object cannot be inferred from the inputs; however it\ncan be defined by passing a single type argument.\n\n```ts\ninterface Result {\n  userName: string;\n}\n\nlet result = deepMapKeys<Result>({user_name: 'Pumbaa'}, snakeToCamel);\n\nlet name = result.userName; // Everything is OK :)\n```\n\n## License\n\nCopyright &copy; 2016–2019 Akim McMath. Licensed under the [MIT License][license].\n\n[version-badge]: https://img.shields.io/npm/v/deep-map-keys.svg?style=flat-square\n[license-badge]: https://img.shields.io/npm/l/deep-map-keys.svg?style=flat-square\n[build-badge]: https://img.shields.io/travis/mcmath/deep-map-keys/master.svg?style=flat-square\n[coverage-badge]: https://img.shields.io/coveralls/mcmath/deep-map-keys/master.svg?style=flat-square&service=github\n[npm]: https://www.npmjs.com/package/deep-map-keys\n[license]: LICENSE\n[travis]: https://travis-ci.org/mcmath/deep-map-keys\n[coveralls]: https://coveralls.io/github/mcmath/deep-map-keys?branch=master\n[deep-map]: https://github.com/mcmath/deep-map\n[snake-case]: https://en.wikipedia.org/wiki/Snake_case\n[camel-case]: https://en.wikipedia.org/wiki/CamelCase\n[typescript]: http://www.typescriptlang.org/\n","maintainers":[{"name":"akim-mcmath","email":"akim.elijah.mcmath@gmail.com"}],"time":{"modified":"2022-06-14T22:56:48.745Z","created":"2016-06-14T07:33:46.120Z","1.0.0":"2016-06-14T07:33:46.120Z","1.1.0":"2016-06-15T11:06:58.472Z","1.1.1":"2016-06-15T14:33:51.347Z","1.1.2":"2016-06-16T01:48:02.958Z","1.2.0":"2016-06-19T23:45:37.909Z","2.0.0":"2019-01-29T01:37:08.732Z","2.0.1":"2019-01-29T02:56:34.163Z"},"homepage":"https://github.com/mcmath/deep-map-keys#readme","keywords":["map","keys","deep","recursive","nested","object","array","circular","json","typescript","typings"],"repository":{"type":"git","url":"git+https://github.com/mcmath/deep-map-keys.git"},"author":{"name":"Akim McMath","email":"akim@mcmath.io","url":"http://www.mcmath.io/"},"bugs":{"url":"https://github.com/mcmath/deep-map-keys/issues"},"license":"MIT","readmeFilename":"README.md","users":{"scharfie":true}}