{"_id":"just-map-keys","_rev":"4573405","name":"just-map-keys","description":"map an object, predicate updates keys, receives (value, key, object)","dist-tags":{"latest":"2.3.0"},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"time":{"modified":"2026-04-10T15:34:47.000Z","created":"2017-10-21T03:24:01.385Z","2.3.0":"2022-12-17T21:01:19.548Z","2.2.1":"2022-08-08T17:49:13.776Z","2.2.0":"2022-08-07T22:42:33.611Z","2.1.2":"2022-04-10T17:45:46.493Z","2.1.1":"2021-11-13T07:24:26.188Z","2.1.0":"2021-11-12T05:59:42.935Z","2.0.0":"2021-11-09T01:11:34.183Z","1.2.1":"2021-11-01T00:58:40.454Z","1.2.0":"2021-10-31T07:38:59.599Z","1.1.0":"2018-08-09T04:52:07.289Z","1.0.1":"2017-10-21T03:46:37.942Z","1.0.0":"2017-10-21T03:24:01.385Z"},"users":{},"author":{"name":"Angus Croll"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"versions":{"2.3.0":{"name":"just-map-keys","version":"2.3.0","description":"map an object, predicate updates keys, receives (value, key, object)","main":"index.cjs","types":"index.d.ts","module":"index.mjs","exports":{".":{"require":"./index.cjs","types":"./index.d.ts","default":"./index.mjs"},"./package.json":"./package.json"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"keywords":["object","map","keys","no-dependencies","just"],"author":{"name":"Angus Croll"},"license":"MIT","bugs":{"url":"https://github.com/angus-c/just/issues"},"gitHead":"192fc6b964b038757e30d239a1f3547c9eb6e30f","homepage":"https://github.com/angus-c/just#readme","_id":"just-map-keys@2.3.0","_nodeVersion":"12.22.6","_npmVersion":"8.1.3","dist":{"shasum":"8539e396160a0c54498dc7b76716b211e7b4a677","size":2414,"noattachment":false,"key":"/just-map-keys/-/just-map-keys-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/just-map-keys/download/just-map-keys-2.3.0.tgz"},"_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"directories":{},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-map-keys_2.3.0_1671310879391_0.8223035638596521"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-17T21:01:23.010Z","publish_time":1671310879548,"_cnpm_publish_time":1671310879548},"2.2.1":{"name":"just-map-keys","version":"2.2.1","description":"map an object, predicate updates keys, receives (value, key, object)","main":"index.js","types":"index.d.ts","module":"index.mjs","exports":{".":{"require":"./index.js","types":"./index.d.ts","default":"./index.mjs"},"./package.json":"./package.json"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"keywords":["object","map","keys","no-dependencies","just"],"author":{"name":"Angus Croll"},"license":"MIT","bugs":{"url":"https://github.com/angus-c/just/issues"},"homepage":"https://github.com/angus-c/just#readme","_id":"just-map-keys@2.2.1","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"shasum":"553e540d122b26c87728ffdfc9323e5ad4680455","size":2398,"noattachment":false,"key":"/just-map-keys/-/just-map-keys-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/just-map-keys/download/just-map-keys-2.2.1.tgz"},"_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"directories":{},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-map-keys_2.2.1_1659980953573_0.8930707641489568"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-08T17:55:31.804Z","publish_time":1659980953776,"_cnpm_publish_time":1659980953776},"2.2.0":{"name":"just-map-keys","version":"2.2.0","description":"map an object, predicate updates keys, receives (value, key, object)","main":"index.js","types":"index.d.ts","module":"index.mjs","exports":{".":{"require":"./index.js","default":"./index.mjs","types":"./index.d.ts"},"./package.json":"./package.json"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"keywords":["object","map","keys","no-dependencies","just"],"author":{"name":"Angus Croll"},"license":"MIT","bugs":{"url":"https://github.com/angus-c/just/issues"},"gitHead":"64f923f1695a29876930e5b6ab752b984c1531d2","homepage":"https://github.com/angus-c/just#readme","_id":"just-map-keys@2.2.0","_nodeVersion":"12.22.6","_npmVersion":"8.1.3","dist":{"shasum":"c9a72612efe2452486b5b4c0d843e3cfb46f6f12","size":2368,"noattachment":false,"key":"/just-map-keys/-/just-map-keys-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/just-map-keys/download/just-map-keys-2.2.0.tgz"},"_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"directories":{},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-map-keys_2.2.0_1659912153461_0.17124843043617455"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-07T22:42:39.413Z","publish_time":1659912153611,"_cnpm_publish_time":1659912153611},"2.1.2":{"name":"just-map-keys","version":"2.1.2","description":"map an object, predicate updates keys, receives (value, key, object)","main":"index.js","types":"index.d.ts","module":"index.mjs","exports":{".":{"require":"./index.js","default":"./index.mjs"}},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"keywords":["object","map","keys","no-dependencies","just"],"author":{"name":"Angus Croll"},"license":"MIT","bugs":{"url":"https://github.com/angus-c/just/issues"},"gitHead":"0fab2004d30164ee9bd9b2663e3187e10ccb262e","homepage":"https://github.com/angus-c/just#readme","_id":"just-map-keys@2.1.2","_nodeVersion":"12.22.6","_npmVersion":"8.1.3","dist":{"shasum":"07a0e24b97e58622c07e53fdeabed759665b3941","size":2316,"noattachment":false,"key":"/just-map-keys/-/just-map-keys-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/just-map-keys/download/just-map-keys-2.1.2.tgz"},"_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"directories":{},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-map-keys_2.1.2_1649612746359_0.17122764868074336"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-10T17:45:49.308Z","publish_time":1649612746493,"_cnpm_publish_time":1649612746493},"2.1.1":{"name":"just-map-keys","version":"2.1.1","description":"map an object, predicate updates keys, receives (value, key, object)","main":"index.js","types":"index.d.ts","module":"index.mjs","exports":{".":{"require":"./index.js","default":"./index.mjs"}},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"keywords":["object","map","keys","no-dependencies","just"],"author":{"name":"Angus Croll"},"license":"MIT","bugs":{"url":"https://github.com/angus-c/just/issues"},"homepage":"https://github.com/angus-c/just#readme","_id":"just-map-keys@2.1.1","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"dist":{"shasum":"475c7e4da5902ee91832070bdab47b90e06001f6","size":2192,"noattachment":false,"key":"/just-map-keys/-/just-map-keys-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/just-map-keys/download/just-map-keys-2.1.1.tgz"},"directories":{},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-map-keys_2.1.1_1636788265957_0.49079376158451105"},"_hasShrinkwrap":false,"publish_time":1636788266188,"_cnpm_publish_time":1636788266188,"_cnpmcore_publish_time":"2021-12-16T18:34:00.544Z"},"2.1.0":{"name":"just-map-keys","version":"2.1.0","description":"map an object, predicate updates keys, receives (value, key, object)","main":"index.js","types":"index.d.ts","module":"index.mjs","exports":{".":{"require":"./index.js","default":"./index.mjs"}},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"keywords":["object","map","keys","no-dependencies","just"],"author":{"name":"Angus Croll"},"license":"MIT","bugs":{"url":"https://github.com/angus-c/just/issues"},"homepage":"https://github.com/angus-c/just#readme","_id":"just-map-keys@2.1.0","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"dist":{"shasum":"c176d004f64bdfe6284dc989d7b704ba7736d3bc","size":2155,"noattachment":false,"key":"/just-map-keys/-/just-map-keys-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/just-map-keys/download/just-map-keys-2.1.0.tgz"},"directories":{},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-map-keys_2.1.0_1636696782802_0.12422732273999726"},"_hasShrinkwrap":false,"publish_time":1636696782935,"_cnpm_publish_time":1636696782935,"_cnpmcore_publish_time":"2021-12-16T18:34:00.789Z"},"2.0.0":{"name":"just-map-keys","version":"2.0.0","description":"map an object, predicate updates keys, receives (value, key, object)","main":"index.js","module":"index.mjs","exports":{".":{"require":"./index.js","default":"./index.mjs"}},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"keywords":["object","map","keys","no-dependencies","just"],"author":{"name":"Angus Croll"},"license":"MIT","bugs":{"url":"https://github.com/angus-c/just/issues"},"homepage":"https://github.com/angus-c/just#readme","_id":"just-map-keys@2.0.0","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"dist":{"shasum":"54ece5cbd7e0d52c40f1e2c309bc452d6cd8399a","size":1788,"noattachment":false,"key":"/just-map-keys/-/just-map-keys-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/just-map-keys/download/just-map-keys-2.0.0.tgz"},"directories":{},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-map-keys_2.0.0_1636420294006_0.8179081400619059"},"_hasShrinkwrap":false,"publish_time":1636420294183,"_cnpm_publish_time":1636420294183,"_cnpmcore_publish_time":"2021-12-16T18:34:00.997Z"},"1.2.1":{"name":"just-map-keys","version":"1.2.1","description":"map an object, predicate updates keys, receives (value, key, object)","main":"index.js","module":"index.esm.js","exports":{".":{"require":"./index.js","default":"./index.esm.js"}},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"keywords":["object","map","keys","no-dependencies","just"],"author":{"name":"Angus Croll"},"license":"MIT","bugs":{"url":"https://github.com/angus-c/just/issues"},"homepage":"https://github.com/angus-c/just#readme","_id":"just-map-keys@1.2.1","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"dist":{"shasum":"ef6e16133b7d34329962dfae9101d581abb1b143","size":1795,"noattachment":false,"key":"/just-map-keys/-/just-map-keys-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/just-map-keys/download/just-map-keys-1.2.1.tgz"},"directories":{},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-map-keys_1.2.1_1635728320309_0.37473567483015446"},"_hasShrinkwrap":false,"publish_time":1635728320454,"_cnpm_publish_time":1635728320454,"_cnpmcore_publish_time":"2021-12-16T18:34:01.204Z"},"1.2.0":{"name":"just-map-keys","version":"1.2.0","description":"map an object, predicate updates keys, receives (value, key, object)","type":"commonjs","main":"index.js","module":"index.esm.js","exports":{".":{"require":"./index.js","default":"./index.esm.js"}},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"keywords":["object","map","keys","no-dependencies","just"],"author":{"name":"Angus Croll"},"license":"MIT","bugs":{"url":"https://github.com/angus-c/just/issues"},"homepage":"https://github.com/angus-c/just#readme","_id":"just-map-keys@1.2.0","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"dist":{"shasum":"abe32930a5fd5881c0d1eaf3255d58c2d5b88da6","size":1807,"noattachment":false,"key":"/just-map-keys/-/just-map-keys-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/just-map-keys/download/just-map-keys-1.2.0.tgz"},"directories":{},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-map-keys_1.2.0_1635665939455_0.07199043793797522"},"_hasShrinkwrap":false,"publish_time":1635665939599,"_cnpm_publish_time":1635665939599,"_cnpmcore_publish_time":"2021-12-16T18:34:01.394Z"},"1.1.0":{"name":"just-map-keys","version":"1.1.0","description":"map an object, predicate updates keys, recieves (value, key, object)","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"keywords":["object","map","keys","no-dependencies","just"],"author":{"name":"Angus Croll"},"license":"MIT","bugs":{"url":"https://github.com/angus-c/just/issues"},"homepage":"https://github.com/angus-c/just#readme","_id":"just-map-keys@1.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"dist":{"shasum":"9663c9f971ba46e17f2b05e66fec81149375f230","size":1599,"noattachment":false,"key":"/just-map-keys/-/just-map-keys-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/just-map-keys/download/just-map-keys-1.1.0.tgz"},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-map-keys_1.1.0_1533790327183_0.727739047049992"},"_hasShrinkwrap":false,"publish_time":1533790327289,"_cnpm_publish_time":1533790327289,"_cnpmcore_publish_time":"2021-12-16T18:34:01.700Z"},"1.0.1":{"name":"just-map-keys","version":"1.0.1","description":"map an object, predicate updates keys, recieves (value, key, object)","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"keywords":["object","map","keys","no-dependencies","just"],"author":{"name":"Angus Croll"},"license":"MIT","bugs":{"url":"https://github.com/angus-c/just/issues"},"homepage":"https://github.com/angus-c/just#readme","_id":"just-map-keys@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"dist":{"shasum":"4d820dd6cdc1489942dba2b402f98cb8246eb447","size":927,"noattachment":false,"key":"/just-map-keys/-/just-map-keys-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/just-map-keys/download/just-map-keys-1.0.1.tgz"},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-map-keys-1.0.1.tgz_1508557597877_0.3619562981184572"},"directories":{},"publish_time":1508557597942,"_hasShrinkwrap":false,"_cnpm_publish_time":1508557597942,"_cnpmcore_publish_time":"2021-12-16T18:34:01.921Z"},"1.0.0":{"name":"just-map-keys","version":"1.0.0","description":"map an object, predicate updates keys, recieves (value, key, object)","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"keywords":["object","map","keys","no-dependencies","just"],"author":{"name":"Angus Croll"},"license":"MIT","bugs":{"url":"https://github.com/angus-c/just/issues"},"homepage":"https://github.com/angus-c/just#readme","_id":"just-map-keys@1.0.0","_npmVersion":"5.4.2","_nodeVersion":"8.6.0","_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"dist":{"shasum":"f63bc216a4b76b64e1e570ddc35607e6c7f6a7d4","size":916,"noattachment":false,"key":"/just-map-keys/-/just-map-keys-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/just-map-keys/download/just-map-keys-1.0.0.tgz"},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-map-keys-1.0.0.tgz_1508556241240_0.819610730279237"},"directories":{},"publish_time":1508556241385,"_hasShrinkwrap":false,"_cnpm_publish_time":1508556241385,"_cnpmcore_publish_time":"2021-12-16T18:34:02.193Z"}},"readme":"<!-- DO NOT EDIT THIS FILE! THIS FILE WAS AUTOGENERATED BY TEMPLATE-MATE -->\n<!-- SEE https://github.com/angus-c/just/blob/master/CONTRIBUTING.md#readme-template -->\n\n## just-map-keys\n\nPart of a [library](https://anguscroll.com/just) of zero-dependency npm modules that do just do one thing.\nGuilt-free utilities for every occasion.\n\n[`???? Try it`](https://anguscroll.com/just/just-map-keys)\n\n```shell\nnpm install just-map-keys\n```\n```shell\nyarn add just-map-keys\n```\n\nMap an object, predicate updates keys, receives (value, key, object)\n\n```js\nimport map from 'just-map-keys';\n\n// predicate updates keys, receives (value, key, object)\nmap({a: 'cow', b: 'sheep', c: 'pig'}, (value) => value);\n  // {cow: 'cow', sheep: 'sheep', pig: 'pig'}\nmap([4, 5, 6], (value, key) => key + 1); // {1: 4, 2: 5, 3: 6}\nmap({a: 3, b: 5, c: 9}, (value, key) => key + value); // {a3: 3, b5: 5, c9: 9}\nmap({a: 3, b: 5, c: 9}, (value, key, obj) => obj.b + value + key);\n  // {'8a': 3, '10b': 5, '14c': 9}\n```\n","_attachments":{},"homepage":"https://github.com/angus-c/just#readme","bugs":{"url":"https://github.com/angus-c/just/issues"},"license":"MIT"}