{"_id":"p-map-values","_rev":"3289608","name":"p-map-values","description":"A function similar to lodash.mapValues or Ramda.mapObjIndexed, but for async functions","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"time":{"modified":"2024-05-23T06:45:16.000Z","created":"2022-11-19T01:52:48.875Z","1.0.0":"2022-11-19T01:54:52.912Z","0.0.0":"2022-11-19T01:52:48.875Z"},"users":{},"author":{"name":"Zoltan Kochan","email":"z@kochan.io"},"repository":{"type":"git","url":"git+https://github.com/zkochan/packages.git#main"},"versions":{"1.0.0":{"name":"p-map-values","version":"1.0.0","description":"A function similar to lodash.mapValues or Ramda.mapObjIndexed, but for async functions","main":"lib/index.js","typings":"lib/index.d.ts","engines":{"node":">=14"},"repository":{"type":"git","url":"git+https://github.com/zkochan/packages.git#main"},"keywords":[],"author":{"name":"Zoltan Kochan","email":"z@kochan.io"},"license":"MIT","homepage":"https://github.com/zkochan/packages/tree/main/p-map-values#readme","dependencies":{},"devDependencies":{"@types/jest":"^27.0.3","jest":"^27.4.3","ts-jest":"^27.1.0","typescript":"^4.5.2"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"scripts":{"test":"jest","tsc":"tsc"},"bugs":{"url":"https://github.com/zkochan/packages/issues"},"_id":"p-map-values@1.0.0","_integrity":"sha512-/n8QJM4Os3HLRMSuQWwAocsMExENSQwWTgRi8m3JVEOWQ/4gud14igBcnYvSGQTbiyZbuizxEmwf0w3ITn67gg==","_resolved":"/tmp/ed21746d7c380d4ec02d99364bff1b41/p-map-values-1.0.0.tgz","_from":"file:p-map-values-1.0.0.tgz","_nodeVersion":"16.18.1","_npmVersion":"9.1.1","dist":{"shasum":"4836406afd6e460ec197b50a2ad0df9295f4ea37","size":1949,"noattachment":false,"key":"/p-map-values/-/p-map-values-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map-values/download/p-map-values-1.0.0.tgz"},"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map-values_1.0.0_1668822892692_0.18681014170376375"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-19T01:54:57.460Z","publish_time":1668822892912,"_cnpm_publish_time":1668822892912},"0.0.0":{"name":"p-map-values","version":"0.0.0","description":"A function similar to lodash.mapValues or Ramda.mapObjIndexed, but for async functions","main":"lib/index.js","typings":"lib/index.d.ts","engines":{"node":">=14"},"repository":{"type":"git","url":"git+https://github.com/zkochan/packages.git#main"},"keywords":[],"author":{"name":"Zoltan Kochan","email":"z@kochan.io"},"license":"MIT","homepage":"https://github.com/zkochan/packages/tree/main/p-map-values#readme","dependencies":{},"devDependencies":{"@types/jest":"^27.0.3","jest":"^27.4.3","ts-jest":"^27.1.0","typescript":"^4.5.2"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"scripts":{"test":"jest","tsc":"tsc"},"bugs":{"url":"https://github.com/zkochan/packages/issues"},"_id":"p-map-values@0.0.0","_integrity":"sha512-iWWvT2lvZeQZhLmW1CdJ6CGf2demabYfMAuNyMUE3x7Rbgq0MB9fjTEH9WietrC841RNTOCk25o5UwU4RMONrg==","_resolved":"/tmp/2b49f29618002244e42e3e757e5e582f/p-map-values-0.0.0.tgz","_from":"file:p-map-values-0.0.0.tgz","_nodeVersion":"16.18.1","_npmVersion":"9.1.1","dist":{"shasum":"8b025128eedbfb7998acafbda43b47ae33a5106e","size":1947,"noattachment":false,"key":"/p-map-values/-/p-map-values-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map-values/download/p-map-values-0.0.0.tgz"},"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map-values_0.0.0_1668822768713_0.8040833624360768"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-19T01:52:52.333Z","publish_time":1668822768875,"_cnpm_publish_time":1668822768875}},"readme":"# p-map-values\n\n> A function similar to lodash.mapValues or Ramda.mapObjIndexed, but for async functions\n\n## Installation\n\n```\npnpm add p-map-values\n```\n\n## Usage\n\n```ts\nimport pMapValues from 'p-map-values'\n\nconst users = {\n  fred: { id: 1 },\n  pebbles: { id: 2 },\n}\n\npMapValues(async (user) => await fetchUserFromDB(user.id), users)\n// => { fred: { age: 40 }, pebbles: { age: 1 } }\n```\n\n## License\n\n[MIT](LICENSE) © [Zoltan Kochan](https://www.kochan.io)\n","_attachments":{},"homepage":"https://github.com/zkochan/packages/tree/main/p-map-values#readme","bugs":{"url":"https://github.com/zkochan/packages/issues"},"license":"MIT"}