{"_id":"@anywhichway/map","_rev":"1-f51bf53d982ae3364fe26fbc469b87c2","name":"@anywhichway/map","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"@anywhichway/map","version":"0.0.1","description":"Map over any iterable","type":"module","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/anywhichway/map.git"},"keywords":["map","iterable","generator"],"author":{"name":"Simon Y. Blackwell"},"license":"MIT","bugs":{"url":"https://github.com/anywhichway/map/issues"},"homepage":"https://github.com/anywhichway/map#readme","dependencies":{"arg-waiter":"^0.0.1"},"gitHead":"883fc6c325b73b55cb47e29c4e4ceacfbc99d894","_id":"@anywhichway/map@0.0.1","_nodeVersion":"16.17.0","_npmVersion":"9.1.2","dist":{"integrity":"sha512-tyr5krve15ise8KmlDZB5c9FsZGYZKrbCWm35Yn02NArEmIgCQAtP/Xv1hKLCzW/h4m5FZV+3V+AsVVRO6vyuA==","shasum":"d109e7c9e3d18d05be1df73bb94e09c5f9b48de6","tarball":"https://registry.npmjs.org/@anywhichway/map/-/map-0.0.1.tgz","fileCount":7,"unpackedSize":4501,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6pz4QnGL18sXjANypaBlZ3Xz9nn3vJMR5N8IGJYhfCAiEA3jgjyoEIlupSRBPZM7bHyl0LPOOnrRcjliIZVTltkA8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjsZPHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmryXw/8CinTbcwDNZNoM3ay6pmt+sayBYF7uDKbwbDEYvGtJG4FyvEf\r\nazPV9q2H+IkB7NGluxJVa0FBYstRTWALJQ/LuoDP6o2fRhQlU8gJ9QVothNy\r\nQ+gp+zW4m5SPePnrivSFOu1Hu36C7q6ttptTIqZ8w5N9MprKONh2RulSzP9g\r\nViGMzd4Y01sxG6oeimTy6HxOx7vhJTAaj7jq4SChTImC5fxUrMKo6BvNuxRR\r\nCpcRN3nA1DGd5ALZnh+0SFDmPdHN64EeVkXcL4ud17NRVVOdtHssMfhFfoUF\r\nbbZ14OT1p3hnbupEMbwVg9GmQAA0pT3qSGsxEh3vN/ukpDJeAblbk348om3Y\r\nYCfk9uzfHv6D+SfI7W8g6BTqkFyp9bxwVw+LS5p4Zv3hQHfBBiS7NHFGWxeF\r\n7mafyHOIApbH+KiThGzexD2IKiCGRhHuLQlmS2PTWeO5A5lurgPMF7Sh3PKJ\r\nM+qAqtvG9CoRGUA+8QDNgcYMkLHM+ISLEyA+bi+ancaRQMiqUgLptqDNTLWh\r\nm72Btlwi251Wxz+hGa4cmI1+eUpjClRwOko51NPNI2ISYhBMCMXT8pQBVmNH\r\n5HsMfbYBDmT2rpT9+rZScC4wt0EPHpMt4voF7H1cDl0cXaQFYp9ZNrFxCMrC\r\nVTDN8mICVrtCC0hW4ebnnEkZJT4VvvLp5IM=\r\n=9nRL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anywhichway","email":"syblackwell@anywhichway.com"},"directories":{},"maintainers":[{"name":"anywhichway","email":"syblackwell@anywhichway.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/map_0.0.1_1672582087130_0.7350333241433262"},"_hasShrinkwrap":false},"1.0.0":{"name":"@anywhichway/map","version":"1.0.0","description":"Map for any iterable, promised iterable, or item that can be converted into an iterable","type":"module","main":"index.js","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest --collectCoverage"},"repository":{"type":"git","url":"git+https://github.com/anywhichway/map.git"},"keywords":["map","iterable","generator"],"author":{"name":"Simon Y. Blackwell"},"license":"MIT","bugs":{"url":"https://github.com/anywhichway/map/issues"},"homepage":"https://github.com/anywhichway/map#readme","dependencies":{"arg-waiter":"^0.0.1"},"devDependencies":{"jest":"^29.3.1"},"gitHead":"d929dfa3cd05e25cc5bb9dafd8f8670c028a0390","_id":"@anywhichway/map@1.0.0","_nodeVersion":"16.17.0","_npmVersion":"9.1.2","dist":{"integrity":"sha512-9uUWzPMchPnZNg2kHIif+v9+oJt20tIbs0ERXdFscKz1gZM7INxt5LpMsRsQy8sMyBjFQKxXY8AI1MrpYX8h/Q==","shasum":"9a8bb01fe0e3f3c6ba16b617e972766f1bdf9002","tarball":"https://registry.npmjs.org/@anywhichway/map/-/map-1.0.0.tgz","fileCount":8,"unpackedSize":8618,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICJRZ95dAnp9CFJlaWJcYB0VARelM0oTSHgXmo1CLzbXAiBW0wKiSVrJfpmr4nEgOsFnQcMmZk4IsFkqvkaOEvz+QQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtbUtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmro1w/+LfChEbbHLs5FLS/9OB6OW16BcyqUmCXcHegL23auKg2PHzY0\r\ng9kynxgegMzjx+TF/UA57wQ+GA3NjkWhcj4FTmz0iLRxowOwZvrUNJ0IXdtQ\r\ndQgm8m7vGhnVRvihHRPgAICuPSddWYacJbirMfmuxwWFrLe6ZCKMoZWWnvN+\r\nEgbgFzKBcORTEjgF6Q4VZ+1piqU9Y49D2J6isdSlqvOSwfEJkSXKQLNljMkO\r\n8QpR6oP1YD6C3WsCrjatNe5OuS1c9Zxm/OJP2g5izSIlPF13Au27R/zNOOrK\r\nMidntewVMgazCqtaNmRassRDLpH9Ljcu1ZXG4/BR2pbFDrRifdbAgI0Cqv8v\r\nVaje8GF0FQLlufnNS5e3ClhwtoNG+5bAH01ysBrXbgFRG3g6qAEHz9mN/c8f\r\n/ZG+PslaV+BpefurfdpVxnp8wuoJ1kaTqZTPo3YfyWyCCRJ3C3+6QnPtsbCP\r\noG5oS4w5SRPww1/a6xzHfbpnwNPIpsP/h/+y0KJZQSCDiPMdFd/By6lfP5EW\r\nBzDoz6UJCY79wj+UICX4dgcW62bKqcutkOtOxXIKDxO11ZydLwsAidLLznVp\r\n6c0ADybb3dx9l8g3aGDY7XxSSYTHWzKveSsyHYif2FshX+DGS1/qS9nhKP4W\r\np0djcibtAzyYi5hYwLzbk0dLj7md17kp6LU=\r\n=VZMr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anywhichway","email":"syblackwell@anywhichway.com"},"directories":{},"maintainers":[{"name":"anywhichway","email":"syblackwell@anywhichway.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/map_1.0.0_1672852781026_0.884963292748985"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-01T14:08:07.055Z","0.0.1":"2023-01-01T14:08:07.299Z","modified":"2023-01-04T17:19:41.303Z","1.0.0":"2023-01-04T17:19:41.203Z"},"maintainers":[{"name":"anywhichway","email":"syblackwell@anywhichway.com"}],"description":"Map for any iterable, promised iterable, or item that can be converted into an iterable","homepage":"https://github.com/anywhichway/map#readme","keywords":["map","iterable","generator"],"repository":{"type":"git","url":"git+https://github.com/anywhichway/map.git"},"author":{"name":"Simon Y. Blackwell"},"bugs":{"url":"https://github.com/anywhichway/map/issues"},"license":"MIT","readme":"# map\r\nMap for any iterable, promised iterable, or item that can be converted into an iterable.\r\n\r\n# Usage\r\n\r\n```javascript\r\nawait map(item,func,what=\"values\")\r\n```\r\n\r\nThe 'item' could be a generator, async generator, Set, etc.\r\n\r\n# How It Works\r\n\r\n1. awaits `item` so that if it is a Promise, it resolves\r\n2. tries to use\r\n   1. native `map` on `item\r\n   2. `for await(value of await item)` directly on the `item`\r\n   3. `for await()` on the result of calling the method with the `what` name on item or if `what` is a function its return value when passed `item`\r\n   4. `for await()` on the result of using native `forEach`, if available on item, to collect values from `item`\r\n\r\n# Release History (Reverse Chronological Order)\r\n\r\n2023-01-04 v1.0.0 Added unit tests, 95.83% test coverage\r\n\r\n2023-01-01 v0.0.1 Initial public release\r\n  \r\n","readmeFilename":"README.md"}