{
  "_args": [
    [
      {
        "raw": "p-map@^2.0.0",
        "scope": null,
        "escapedName": "p-map",
        "name": "p-map",
        "rawSpec": "^2.0.0",
        "spec": ">=2.0.0 <3.0.0",
        "type": "range"
      },
      "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/p-every"
    ]
  ],
  "_from": "p-map@^2.0.0",
  "_hasShrinkwrap": false,
  "_id": "p-map@2.1.0",
  "_location": "/p-map",
  "_nodeVersion": "10.15.1",
  "_npmOperationalInternal": {
    "host": "s3://npm-registry-packages",
    "tmp": "tmp/p-map_2.1.0_1554564466828_0.6092914198956048"
  },
  "_npmUser": {
    "name": "sindresorhus",
    "email": "sindresorhus@gmail.com"
  },
  "_npmVersion": "6.4.1",
  "_phantomChildren": {},
  "_requested": {
    "raw": "p-map@^2.0.0",
    "scope": null,
    "escapedName": "p-map",
    "name": "p-map",
    "rawSpec": "^2.0.0",
    "spec": ">=2.0.0 <3.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/p-every",
    "/p-filter"
  ],
  "_resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz",
  "_shasum": "310928feef9c9ecc65b68b17693018a665cea175",
  "_shrinkwrap": null,
  "_spec": "p-map@^2.0.0",
  "_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/p-every",
  "author": {
    "name": "Sindre Sorhus",
    "email": "sindresorhus@gmail.com",
    "url": "sindresorhus.com"
  },
  "bugs": {
    "url": "https://github.com/sindresorhus/p-map/issues"
  },
  "dependencies": {},
  "description": "Map over promises concurrently",
  "devDependencies": {
    "ava": "^1.4.1",
    "delay": "^4.1.0",
    "in-range": "^1.0.0",
    "random-int": "^1.0.0",
    "time-span": "^3.1.0",
    "tsd": "^0.7.2",
    "xo": "^0.24.0"
  },
  "directories": {},
  "dist": {
    "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==",
    "shasum": "310928feef9c9ecc65b68b17693018a665cea175",
    "tarball": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz",
    "fileCount": 5,
    "unpackedSize": 7492,
    "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcqMVzCRA9TVsSAnZWagAAH7MP/1dhjbYA95u96lcrXoI7\nPANumsOKN46Kk45pH6026PJJWJYnNsuf5LFchkf2j3K9aDxjwHg9T9tQdnQX\ni4zsurQSVDF7y24MNc54kJ4sj2zWIBYVp1coF+eiVJ9pBvQUxW6Ei+7a67ID\np09x8rzbuBdUQc1UuXyfWA/o6MeGhrH7IG/jHQYuNIaQrTNFmTfKtnE724aV\nXHFHYru9IsBv90l1DmeBdkAzZE7C5pV+XRTLRzgB1k1vd2YBOaKYVsalAYFd\nsvALaPBHveu5q4yU/BbU1I2bzdU3FNa0+BuTBMnj9PFM8si81/G/isIFHd3u\n8jIqxoZ28stb/G9ESlodd+ml+0qCWTjC5owQUnGA0jbcDlMTMnbIHMA6BcIy\nwFjUoF8dD7jELaSocnUVxgPD/Ce0g7pb0q1W2YDiOx/nK88q3NS+Ne6B+X4G\nxAJk5gqGNa3k1HK5uFv7qEr8WfiDy95odJLnUZr+IBOpKy8c9eipuZwkoVfv\nZ/SaTt9xUR7YY6jV0e84FwcNwc9NekaVuQnHMK2SpWofeM1SnMda2C6sh3jl\nBqxhPqN+boUIqxI8bPUajuWAMfX4mX85pIyQyYddMxxhBCjpWTNmrgOUpAW/\nV61b/jzV/bEcadK70NhqiZZ8RyeZpPNhaq23hkviya4f/MknvyHWXO5pTzcK\nfAOk\r\n=GygQ\r\n-----END PGP SIGNATURE-----\r\n"
  },
  "engines": {
    "node": ">=6"
  },
  "files": [
    "index.js",
    "index.d.ts"
  ],
  "gitHead": "a44286e8c4b63bebeae3526b94dd21779e26c518",
  "homepage": "https://github.com/sindresorhus/p-map#readme",
  "keywords": [
    "promise",
    "map",
    "resolved",
    "wait",
    "collection",
    "iterable",
    "iterator",
    "race",
    "fulfilled",
    "async",
    "await",
    "promises",
    "concurrently",
    "concurrency",
    "parallel",
    "bluebird"
  ],
  "license": "MIT",
  "maintainers": [
    {
      "name": "sindresorhus",
      "email": "sindresorhus@gmail.com"
    }
  ],
  "name": "p-map",
  "optionalDependencies": {},
  "readme": "# p-map [![Build Status](https://travis-ci.org/sindresorhus/p-map.svg?branch=master)](https://travis-ci.org/sindresorhus/p-map)\n\n> Map over promises concurrently\n\nUseful when you need to run promise-returning & async functions multiple times with different inputs concurrently.\n\n\n## Install\n\n```\n$ npm install p-map\n```\n\n\n## Usage\n\n```js\nconst pMap = require('p-map');\nconst got = require('got');\n\nconst sites = [\n\tgetWebsiteFromUsername('sindresorhus'), //=> Promise\n\t'ava.li',\n\t'todomvc.com',\n\t'github.com'\n];\n\n(async () => {\n\tconst mapper = async site => {\n\t\tconst {requestUrl} = await got.head(site);\n\t\treturn requestUrl;\n\t};\n\n \tconst result = await pMap(sites, mapper, {concurrency: 2});\n\n\tconsole.log(result);\n\t//=> ['http://sindresorhus.com/', 'http://ava.li/', 'http://todomvc.com/', 'http://github.com/']\n})();\n```\n\n## API\n\n### pMap(input, mapper, [options])\n\nReturns a `Promise` that is fulfilled when all promises in `input` and ones returned from `mapper` are fulfilled, or rejects if any of the promises reject. The fulfilled value is an `Array` of the fulfilled values returned from `mapper` in `input` order.\n\n#### input\n\nType: `Iterable<Promise|any>`\n\nIterated over concurrently in the `mapper` function.\n\n#### mapper(element, index)\n\nType: `Function`\n\nExpected to return a `Promise` or value.\n\n#### options\n\nType: `Object`\n\n##### concurrency\n\nType: `number`<br>\nDefault: `Infinity`<br>\nMinimum: `1`\n\nNumber of concurrently pending promises returned by `mapper`.\n\n\n## Related\n\n- [p-all](https://github.com/sindresorhus/p-all) - Run promise-returning & async functions concurrently with optional limited concurrency\n- [p-filter](https://github.com/sindresorhus/p-filter) - Filter promises concurrently\n- [p-times](https://github.com/sindresorhus/p-times) - Run promise-returning & async functions a specific number of times concurrently\n- [p-props](https://github.com/sindresorhus/p-props) - Like `Promise.all()` but for `Map` and `Object`\n- [p-map-series](https://github.com/sindresorhus/p-map-series) - Map over promises serially\n- [p-queue](https://github.com/sindresorhus/p-queue) - Promise queue with concurrency control\n- [More…](https://github.com/sindresorhus/promise-fun)\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
  "readmeFilename": "readme.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/sindresorhus/p-map.git"
  },
  "scripts": {
    "test": "xo && ava && tsd"
  },
  "version": "2.1.0"
}
