{"_id":"map-map","_rev":"12-9bbf152313a6ed2fcddc2ba57e27aae3","name":"map-map","description":"Applies a callback to each key-value pair of a Map or Object.","dist-tags":{"latest":"3.1.0"},"versions":{"1.0.0":{"name":"map-map","version":"1.0.0","description":"A map function for Maps. Yeah, I know.","main":"index.js","scripts":{"test":"node test"},"repository":{"type":"git","url":"git+https://github.com/matthewlucock/map-map.git"},"author":{"name":"Matt Lucock","email":"matthewlucock@icloud.com","url":"https://github.com/matthewlucock"},"license":"MIT","bugs":{"url":"https://github.com/matthewlucock/map-map/issues"},"homepage":"https://github.com/matthewlucock/map-map#readme","keywords":["map","mapping","keys","values","collection","es6"],"devDependencies":{"chai":"^3.5.0","eslint":"^3.14.0","mocha":"^3.2.0"},"gitHead":"1a2f4bc4fc79eff643da6ee2bc99f4e90606316b","_id":"map-map@1.0.0","_shasum":"35903682680a28cff7e04ce330f950eee47f4e65","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"matthewlucock","email":"matthewlucock@icloud.com"},"dist":{"shasum":"35903682680a28cff7e04ce330f950eee47f4e65","tarball":"https://registry.npmjs.org/map-map/-/map-map-1.0.0.tgz","integrity":"sha512-mmJyFEJ38Ul9ttKVvHmfnTYFJ6S+CX/LCQsmuQ/shj/TPWJXjBjqi+hhhI9dCI9ZoiDP2pwhdrsDezyekNvWIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGjDOuRjxgfQzqAag8lnv4GG/yy0cKby/wfyu+yN+lVfAiA8enxqPc2INytf59MUKWFWV6l9HWWA20pHDYKTlx8tuw=="}]},"maintainers":[{"name":"matthewlucock","email":"matthewlucock@icloud.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/map-map-1.0.0.tgz_1485139170932_0.2318818971980363"},"deprecated":"Package abandoned, contact support@npmjs.com for more info.","directories":{}},"2.0.0":{"name":"map-map","version":"2.0.0","description":"This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/npm/deprecate-holder.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/npm/deprecate-holder/issues"},"homepage":"https://github.com/npm/deprecate-holder#readme","gitHead":"26252b4ce518fdb10b0ce6caa6ea18f54997a023","_id":"map-map@2.0.0","_shasum":"dba65a6d2ed0615977869437dae5e57607023ff7","_from":".","_npmVersion":"4.2.0","_nodeVersion":"4.1.2","_npmUser":{"name":"ehsalazar","email":"ernie@npmjs.com"},"dist":{"shasum":"dba65a6d2ed0615977869437dae5e57607023ff7","tarball":"https://registry.npmjs.org/map-map/-/map-map-2.0.0.tgz","integrity":"sha512-aYBBcEccv7HQBdvkWp/7bm87+VtjUbcONQOgz1kixETFIVbPEZYh3Yhorh19ZqqZjC8tV0uYyCReyCvgzrjlxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxk+6R2GkIgPwCek7keVKJKdWptEECdLGNMGpANh7fgQIgQ4m4TTqVqTJLbz0DihuHD4P1LFj/i+3m853wamlOblk="}]},"maintainers":[{"name":"matthewlucock","email":"matthewlucock@icloud.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/map-map-2.0.0.tgz_1492475651049_0.32910767616704106"},"deprecated":"Package abandoned, contact support@npmjs.com for more info.","directories":{}},"3.0.0":{"name":"map-map","version":"3.0.0","description":"Applies a callback to each key-value pair of a Map or Object.","keywords":["map","object"],"author":{"name":"John Lamansky"},"license":"MIT","homepage":"https://github.com/lamansky/map-map","repository":{"type":"git","url":"git+https://github.com/lamansky/map-map.git"},"main":"index.js","files":[],"dependencies":{"m-o":"^2.1.1"},"devDependencies":{"eslint-config-lamansky":"^1.0.0","mocha":"^4.0.1"},"scripts":{"test":"mocha"},"eslintConfig":{"extends":"lamansky","env":{"mocha":true}},"gitHead":"1a97f1607aa2e16f30c92f5afc552bc31aa1edaf","bugs":{"url":"https://github.com/lamansky/map-map/issues"},"_id":"map-map@3.0.0","_npmVersion":"5.5.1","_nodeVersion":"9.2.1","_npmUser":{"name":"lamansky","email":"johnlamansky@gmail.com"},"dist":{"integrity":"sha512-3hCE3MlCP6JRXhxJMWV489X1jldz7Mb9tDkx/hXIB5NrNOABslwzcsWuNvG869XL3azH6p19/ashmIebVYPH+Q==","shasum":"28fb794f98fee44307754bada4f24f92f052008d","tarball":"https://registry.npmjs.org/map-map/-/map-map-3.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB0RrwAQIo/xMOKrOWG2Bdw/qJsRrd5c6icLJ25WttsWAiA46pF7ECyiGxvLh7OCEuxfPIHHi050S1aRY+vGBvprmA=="}]},"maintainers":[{"email":"johnlamansky@gmail.com","name":"lamansky"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/map-map-3.0.0.tgz_1514457258374_0.2273449986241758"},"directories":{}},"3.1.0":{"name":"map-map","version":"3.1.0","description":"Applies a callback to each key-value pair of a Map or Object.","keywords":["map","object"],"author":{"name":"Fr. John Lamansky","url":"lamansky.com"},"license":"MIT","homepage":"https://github.com/lamansky/map-map","repository":{"type":"git","url":"git+https://github.com/lamansky/map-map.git"},"main":"index.js","engines":{"node":">=7.0.0"},"dependencies":{"construct-map":"^1.2.0","entries-array":"^1.1.0","sbo":"^1.1.0"},"devDependencies":{"eslint-config-lamansky":"^1.0.0","is-array-with":"^1.0.0","mocha":"^5.2.0"},"scripts":{"test":"mocha"},"eslintConfig":{"extends":"lamansky","env":{"mocha":true}},"gitHead":"e8ee8410ccbf2ce09c239ebd9cfa461a3f9cb9b8","bugs":{"url":"https://github.com/lamansky/map-map/issues"},"_id":"map-map@3.1.0","_npmVersion":"5.5.1","_nodeVersion":"9.2.1","_npmUser":{"name":"lamansky","email":"johnlamansky@gmail.com"},"dist":{"integrity":"sha512-RPeKKB9qquupUmqyMKXZG1zr8zNgtX2o0aKeH2WK1xVP7daL1WG0QtUq3b/s7eAiYNeZb8Al4WtiTAbp9o+2Dw==","shasum":"bdb99b7bf50e9ceac03e3556360603129d89a880","tarball":"https://registry.npmjs.org/map-map/-/map-map-3.1.0.tgz","fileCount":4,"unpackedSize":3374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb3cH2CRA9TVsSAnZWagAALLwQAJcsF96cGXzAxtLkVNWQ\nAkdEgaLqyFdoWn8zd8l7iY8oB3YDabqfMhB27h8Uf66aGeYE3sRA2BhNETD/\nxwJNY4MYysEaQ7pISdLVrNAUI9/OMJyuelX4eUDh5Szqf6T/v0+fmW+RcjN/\nEIFzUC7YOdguZsTjZwwebhHJKhQIj0rU6VCKNH0JbMkqWWK9nJrkPUvpQxHU\njm38UyYNfd92hEcdTd+52/z6VshxUgW8KjNfVSoDsnKyGoMRm3Drf7uWy3GZ\nc8BR2gZRfQIrstEBIgS07VWNZJH3YQLJPLgfMjra98Uy2LfdJaZKe2mnSGlz\nmPHrzBu92KQXzfsPc3zGMCyvzwyjeDbed6/NZLB+OPGrucQODWcgFCBxf+a3\n5435+AxQwyvT70v0oQH4erDkDRbrKIbO9Z8TUA+Lb65iyKAoMcKsZWWR+M4o\n/jEHmt1ALvrizhXxMmY5GbSEzOCQnFfLO8vqVu3uAPOzDeSipYNjVx1/aS0U\ncbLaHN4oFkUb8LErYjLOZ6yHrtln2MlWkuxhyU6fpf4MBeptb5EdEuJiLlqt\ntOjjywW6mCP2t7vVcn/WKzuIR35zUhXRsQ63eowogJDA89p/XwxBrpEH5Gep\nxqGpXXs/JHSOA8QBMtCohLThvSshvGOkKUzsvwX7NLLO5/xlB68eK24vrv21\nhoEE\r\n=Jnul\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHeKB50yRGBaRbLzDoZ1rUcA+hqmSZXCPTSVcERv9YyLAiALsSt1Ynv7D8J4Gy/uf6baGG8UYh6tVng4mV/h0eVbyg=="}]},"maintainers":[{"email":"johnlamansky@gmail.com","name":"lamansky"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/map-map_3.1.0_1541259765889_0.03366032532160035"},"_hasShrinkwrap":false}},"readme":"# map-map\n\nApplies a callback to each key-value pair of a Map, Object, or other collection. The original collection is not modified; a copy is returned.\n\n## Installation\n\nRequires [Node.js](https://nodejs.org/) 7.0.0 or above.\n\n```bash\nnpm i map-map\n```\n\n## API\n\nThe module exports a single function.\n\n### Parameters\n\n1. Bindable: `map` (Array, iterator, Object, Map, Set, string, or Typed Array)\n2. `mapper` (function): The callback which receives three arguments (key, value, and index) and which returns a two-element array containing the new key and value.\n3. Optional: `options`: Object argument which is forwarded to [`entries-array`](https://github.com/lamansky/entries-array), a dependency of this module.\n\n### Return Value\n\nA copy of `map` which has had `mapper` applied to each of its key-value pairs.\n\n## Example\n\n```javascript\nconst mapMap = require('map-map')\n\nlet map = new Map([['key', 'value']])\nmap = mapMap(map, (key, value, index) => [key + '_mapped', value + '_mapped'])\nmap.get('key_mapped') // 'value_mapped'\n```\n\nWorks on Objects too:\n\n```javascript\nconst mapMap = require('map-map')\n\nlet obj = {key: 'value'}\nobj = mapMap(obj, (key, value, index) => [key + '_mapped', value + '_mapped'])\nobj.key_mapped // 'value_mapped'\n```\n","maintainers":[{"email":"johnlamansky@gmail.com","name":"lamansky"}],"time":{"modified":"2022-06-19T15:51:51.167Z","created":"2017-01-23T02:39:31.170Z","1.0.0":"2017-01-23T02:39:31.170Z","1.0.1":"2017-01-23T11:52:44.968Z","2.0.0":"2017-04-18T00:34:11.269Z","3.0.0":"2017-12-28T10:34:19.361Z","3.1.0":"2018-11-03T15:42:46.011Z"},"homepage":"https://github.com/lamansky/map-map","repository":{"type":"git","url":"git+https://github.com/lamansky/map-map.git"},"bugs":{"url":"https://github.com/lamansky/map-map/issues"},"license":"MIT","readmeFilename":"readme.md","keywords":["map","object"],"author":{"name":"Fr. John Lamansky","url":"lamansky.com"},"users":{"wolfram77":true}}