@zkochan/pnpm
Version:
Fast, disk space efficient package manager
91 lines (90 loc) • 3.31 kB
JSON
{
"_args": [
[
{
"raw": "promise-inflight@^1.0.1",
"scope": null,
"escapedName": "promise-inflight",
"name": "promise-inflight",
"rawSpec": "^1.0.1",
"spec": ">=1.0.1 <2.0.0",
"type": "range"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/cacache"
]
],
"_from": "promise-inflight@>=1.0.1 <2.0.0",
"_id": "promise-inflight@1.0.1",
"_inCache": true,
"_location": "/promise-inflight",
"_nodeVersion": "4.6.1",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/promise-inflight-1.0.1.tgz_1488077339544_0.4008405189961195"
},
"_npmUser": {
"name": "iarna",
"email": "me@re-becca.org"
},
"_npmVersion": "4.4.0",
"_phantomChildren": {},
"_requested": {
"raw": "promise-inflight@^1.0.1",
"scope": null,
"escapedName": "promise-inflight",
"name": "promise-inflight",
"rawSpec": "^1.0.1",
"spec": ">=1.0.1 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/cacache"
],
"_resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",
"_shasum": "98472870bf228132fcbdd868129bad12c3c029e3",
"_shrinkwrap": null,
"_spec": "promise-inflight@^1.0.1",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/cacache",
"author": {
"name": "Rebecca Turner",
"email": "me@re-becca.org",
"url": "http://re-becca.org/"
},
"bugs": {
"url": "https://github.com/iarna/promise-inflight/issues"
},
"dependencies": {},
"description": "One promise for multiple requests in flight to avoid async duplication",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "98472870bf228132fcbdd868129bad12c3c029e3",
"tarball": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz"
},
"files": [
"inflight.js"
],
"gitHead": "9de9f26d8ecfe28d067cbd84630676dfea415e4a",
"homepage": "https://github.com/iarna/promise-inflight#readme",
"keywords": [],
"license": "ISC",
"main": "inflight.js",
"maintainers": [
{
"name": "iarna",
"email": "me@re-becca.org"
}
],
"name": "promise-inflight",
"optionalDependencies": {},
"readme": "# promise-inflight\n\nOne promise for multiple requests in flight to avoid async duplication\n\n## USAGE\n\n```javascript\nconst inflight = require('promise-inflight')\n\n// some request that does some stuff\nfunction req(key) {\n // key is any random string. like a url or filename or whatever.\n return inflight(key, () => {\n // this is where you'd fetch the url or whatever\n return Promise.delay(100)\n })\n}\n\n// only assigns a single setTimeout\n// when it dings, all thens get called with the same result. (There's only\n// one underlying promise.)\nreq('foo').then(…)\nreq('foo').then(…)\nreq('foo').then(…)\nreq('foo').then(…)\n```\n\n## SEE ALSO\n\n* [inflight](https://npmjs.com/package/inflight) - For the callback based function on which this is based.\n\n## STILL NEEDS\n\nTests!\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/iarna/promise-inflight.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "1.0.1"
}