{
  "_args": [
    [
      {
        "raw": "async-promise-queue@^1.0.3",
        "scope": null,
        "escapedName": "async-promise-queue",
        "name": "async-promise-queue",
        "rawSpec": "^1.0.3",
        "spec": ">=1.0.3 <2.0.0",
        "type": "range"
      },
      "/home/travis/build/lukesargeant/ember-sparkline/node_modules/broccoli-persistent-filter"
    ]
  ],
  "_from": "async-promise-queue@>=1.0.3 <2.0.0",
  "_id": "async-promise-queue@1.0.4",
  "_inCache": true,
  "_location": "/async-promise-queue",
  "_nodeVersion": "8.1.3",
  "_npmOperationalInternal": {
    "host": "s3://npm-registry-packages",
    "tmp": "tmp/async-promise-queue-1.0.4.tgz_1501107728974_0.6531703677028418"
  },
  "_npmUser": {
    "name": "stefanpenner",
    "email": "stefan.penner@gmail.com"
  },
  "_npmVersion": "5.1.0",
  "_phantomChildren": {},
  "_requested": {
    "raw": "async-promise-queue@^1.0.3",
    "scope": null,
    "escapedName": "async-promise-queue",
    "name": "async-promise-queue",
    "rawSpec": "^1.0.3",
    "spec": ">=1.0.3 <2.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/broccoli-persistent-filter"
  ],
  "_resolved": "https://registry.npmjs.org/async-promise-queue/-/async-promise-queue-1.0.4.tgz",
  "_shasum": "308baafbc74aff66a0bb6e7f4a18d4fe8434440c",
  "_shrinkwrap": null,
  "_spec": "async-promise-queue@^1.0.3",
  "_where": "/home/travis/build/lukesargeant/ember-sparkline/node_modules/broccoli-persistent-filter",
  "author": {
    "name": "Stefan Penner",
    "email": "stefan.penner@gmail.com"
  },
  "bugs": {
    "url": "https://github.com/stefanpenner/async-promise-queue/issues"
  },
  "dependencies": {
    "async": "^2.4.1",
    "debug": "^2.6.8"
  },
  "description": "wrapper around async.queue to make some common usages simpler",
  "devDependencies": {
    "chai": "^4.0.2",
    "mocha": "^3.4.2"
  },
  "directories": {},
  "dist": {
    "integrity": "sha512-GQ5X3DT+TefYuFPHdvIPXFTlKnh39U7dwtl+aUBGeKjMea9nBpv3c91DXgeyBQmY07vQ97f3Sr9XHqkamEameQ==",
    "shasum": "308baafbc74aff66a0bb6e7f4a18d4fe8434440c",
    "tarball": "https://registry.npmjs.org/async-promise-queue/-/async-promise-queue-1.0.4.tgz"
  },
  "gitHead": "781c8a482c60d530e50e06650473eafb089297c4",
  "homepage": "https://github.com/stefanpenner/async-promise-queue#readme",
  "license": "MIT",
  "main": "index.js",
  "maintainers": [
    {
      "name": "stefanpenner",
      "email": "stefan.penner@gmail.com"
    }
  ],
  "name": "async-promise-queue",
  "optionalDependencies": {},
  "readme": "# async-promise-queue\n\n[![Build Status](https://travis-ci.org/stefanpenner/async-promise-queue.svg?branch=master)](https://travis-ci.org/stefanpenner/async-promise-queue)\n\nA wrapper around the `async` module, that provides an improved promise queue.\n\nSome highlights:\n\n* promiseified method (all wired up)\n* in a failure scenario, it will wait for pending work before rejecting. This prevents the run-away work problem.\n\n## Usage\n\n```sh\nnpm install async-promise-queue\n```\n\nor\n\n```sh\nyarn add async-promise-queue\n```\n\n### Debug logging\n\n```\nDEBUG=\"async-promise-queue*\" node <your program>\n```\n\nAnd you will be informed when a queue is used, and what its concurrency becomes (note: we can always add more logging, submit your ideas as pull requests!)\n\n## Example\n\n```js\n'use strict';\n\nconst queue = require('async-promise-queue');\n\nqueue.async // a reference to the `async` module which `async-promise-queue` is requiring.\n\n// the example worker\nconst worker = queue.async.asyncify(function(work) {\n  console.log('work', work.file);\n  return new Promise(resolve => {\n    if (work.file === '/path-2') { throw new Error('/path-2'); }\n    if (work.file === '/path-3') { throw new Error('/path-3'); }\n    setTimeout(resolve, work.duration);\n  });\n});\n\n// the work\nconst work = [\n  { file:'/path-1',  duration: 1000 },\n  { file:'/path-2',  duration: 50 },\n  { file:'/path-3',  duration: 100 },\n  { file:'/path-4',  duration: 50 },\n];\n\n// calling our queue helper\nqueue(worker, work, 3)\n  .catch(reason => console.error(reason))\n  .then(value   => console.log('complete!!', value))\n```\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/stefanpenner/async-promise-queue.git"
  },
  "scripts": {
    "test": "mocha test",
    "test:debug": "mocha debug test"
  },
  "version": "1.0.4"
}
