{"_id":"promise-throttle","_rev":"19-b0518cc63a0eabf215eb9cc3526fa518","name":"promise-throttle","dist-tags":{"latest":"2.1.0"},"versions":{"0.0.1":{"name":"promise-throttle","version":"0.0.1","keywords":["promise","throttle"],"author":{"name":"Jose M. Perez"},"license":"MIT","_id":"promise-throttle@0.0.1","maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"homepage":"https://github.com/jmperez/promise-throttle","bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"dist":{"shasum":"c85cb714a79f5e028e1250b3037492ac4f5e3403","tarball":"https://registry.npmjs.org/promise-throttle/-/promise-throttle-0.0.1.tgz","integrity":"sha512-KR91Rcw+ZFdyXBAGJp1qxmD2aPeNXNPUWF3fF0+X+9/V+fWcy6Z75+HcU7EP2TbSpzuZ2CCFd9aKGFSs65G/Mw==","signatures":[{"sig":"MEYCIQD50Pp0snXmOgMLGOZ4nHZM20PIHyipDv6+xI0i4gLYWgIhAPLGoNcJqpXiX9hxbWZGl28UD0/WvlIXZRy3ZffQ+LMJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"main.js","_from":".","_shasum":"c85cb714a79f5e028e1250b3037492ac4f5e3403","gitHead":"d9747fc1c324af4e3d604ded362f0b739d440b4f","scripts":{},"_npmUser":{"name":"jmperez","email":"jmperez1985@gmail.com"},"repository":{"url":"https://github.com/jmperez/promise-throttle.git","type":"git"},"_npmVersion":"2.1.9","description":"A library to throttle promises","directories":{},"_nodeVersion":"0.10.31"},"0.1.0":{"name":"promise-throttle","version":"0.1.0","keywords":["promise","throttle"],"author":{"name":"Jose M. Perez"},"license":"MIT","_id":"promise-throttle@0.1.0","maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"homepage":"https://github.com/jmperez/promise-throttle","bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"dist":{"shasum":"c88d2d5d16eeab96db36f8877f00406aabc0c120","tarball":"https://registry.npmjs.org/promise-throttle/-/promise-throttle-0.1.0.tgz","integrity":"sha512-FGHkDnnymLNkyj0/wiVkDmqYLc/GqUoz8xdf7GMHk1+9WLCZeKa1XZGnKxluKsB+sAFyHLtlJd3NaDBi46CVbw==","signatures":[{"sig":"MEQCIHpF0OsmZ47BJLRKU+fbldHS2IOQGKHXnDR6IPswhD8gAiA9EkiLr8Z1Em7LioMwmacrByoJje5y4bj2BM15BiPs/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/main.js","_from":".","config":{"blanket":{"pattern":"//^(?!.*node_modules.*$).*lib//"}},"_shasum":"c88d2d5d16eeab96db36f8877f00406aabc0c120","gitHead":"48c0f0c951617d943cea5c557a684f9233d85152","scripts":{"test":"make test"},"_npmUser":{"name":"jmperez","email":"jmperez1985@gmail.com"},"repository":{"url":"https://github.com/jmperez/promise-throttle.git","type":"git"},"_npmVersion":"2.5.1","description":"A library to throttle promises","directories":{},"_nodeVersion":"0.10.21","devDependencies":{"mocha":"~2.1.0","sinon":"~1.12.2","blanket":"~1.1.6","promise":"~6.1.0","coveralls":"~2.11.2","mocha-lcov-reporter":"0.0.1"}},"0.2.0":{"name":"promise-throttle","version":"0.2.0","keywords":["promise","throttle"],"author":{"name":"Jose M. Perez"},"license":"MIT","_id":"promise-throttle@0.2.0","maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"homepage":"https://github.com/jmperez/promise-throttle","bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"dist":{"shasum":"438f2ff7484835c4fa7cc8674bc7369b541e874d","tarball":"https://registry.npmjs.org/promise-throttle/-/promise-throttle-0.2.0.tgz","integrity":"sha512-o1ViKrMcvodmfC4Ghgt/tYoFKfz29G00f9jkEunjuFj1491G4dX1/T2qZ5l384qOU7cqqMgaCk8jjRp3zIjw+A==","signatures":[{"sig":"MEYCIQDVGDuiY/YjNr0TuqK97VJc3Ngo1VYhP9RPnI6hmXVaVAIhAJ203eJLWb/6P0QDnnceA3CHLHempFmxbdRPKgr4zGzy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/main.js","_from":".","config":{"blanket":{"pattern":"//^(?!.*node_modules.*$).*lib//"}},"_shasum":"438f2ff7484835c4fa7cc8674bc7369b541e874d","gitHead":"5de69d8bc48a7931b87811dd0f733ac0801ace6e","scripts":{"test":"make test"},"_npmUser":{"name":"jmperez","email":"jmperez1985@gmail.com"},"repository":{"url":"https://github.com/jmperez/promise-throttle.git","type":"git"},"_npmVersion":"2.5.1","description":"A library to throttle promises","directories":{},"_nodeVersion":"0.10.21","devDependencies":{"mocha":"~2.1.0","sinon":"~1.12.2","blanket":"~1.1.6","promise":"~6.1.0","coveralls":"~2.11.2","mocha-lcov-reporter":"0.0.1"}},"0.3.0":{"name":"promise-throttle","version":"0.3.0","keywords":["promise","throttle"],"author":{"name":"Jose M. Perez"},"license":"MIT","_id":"promise-throttle@0.3.0","maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"homepage":"https://github.com/jmperez/promise-throttle","bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"dist":{"shasum":"912fda75c7c4e23680cb3880a788c5389c69aed8","tarball":"https://registry.npmjs.org/promise-throttle/-/promise-throttle-0.3.0.tgz","integrity":"sha512-B4dtZfZjmqp2362hX7zXwP+vIv7bMsVExw46NAucpDv/dcydrAPUwxUCWbUj+mJzJCq3JRjmqLYENZZMGZWSoA==","signatures":[{"sig":"MEUCIQCKn44hUhPPIRnl907D89qtacPesDrtYAvRmPEZjI8UaAIgfetT1CXfyOnsjojKMpzG99Vfs7Wp3VFxeIIttU/Lka0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/main.js","_from":".","_shasum":"912fda75c7c4e23680cb3880a788c5389c69aed8","gitHead":"29c0dd03b5da3f0fb5c0efa3c28480f13fde493d","scripts":{"dist":"mkdir -p dist && browserify lib/browser.js -o dist/promise-throttle.js","lint":"eslint lib/*.js","test":"npm run lint && jest --coverage","start":"npm run dist","travis":"npm test && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"},"_npmUser":{"name":"jmperez","email":"jmperez1985@gmail.com"},"repository":{"url":"git+https://github.com/jmperez/promise-throttle.git","type":"git"},"_npmVersion":"3.10.3","description":"A library to throttle promises","directories":{},"_nodeVersion":"6.6.0","devDependencies":{"sinon":"~1.12.2","eslint":"^3.8.0","promise":"~6.1.0","jest-cli":"^16.0.2","coveralls":"~2.11.2"},"_npmOperationalInternal":{"tmp":"tmp/promise-throttle-0.3.0.tgz_1477155437099_0.9581523942761123","host":"packages-12-west.internal.npmjs.com"}},"0.3.1":{"name":"promise-throttle","version":"0.3.1","keywords":["promise","throttle"],"author":{"name":"Jose M. Perez"},"license":"MIT","_id":"promise-throttle@0.3.1","maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"homepage":"https://github.com/jmperez/promise-throttle","bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"dist":{"shasum":"7483b8ac95712d02acde458a24362929e8258ccd","tarball":"https://registry.npmjs.org/promise-throttle/-/promise-throttle-0.3.1.tgz","integrity":"sha512-w4QEg9xY5kPQm2GUupjKJeSL6ZwrQE2GpXg39RWAocYSQ4IK+28TOcMTvoWf3ScNizH+++R4g5nR7QxFJiQSpA==","signatures":[{"sig":"MEQCIByANJ37Ws3Mn7imgvjgXFQI9bERzk2AdbEVxSUgCNrHAiBqz05PJX57sYa09h2FFfpXAZczRIv9w4w2zuucpD7pQg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/main.js","_from":".","files":["lib/main.js"],"_shasum":"7483b8ac95712d02acde458a24362929e8258ccd","gitHead":"b03b74e41531f1d6bcb09a698c1f0fb2b446b67e","scripts":{"dist":"mkdir -p dist && browserify lib/browser.js -o dist/promise-throttle.js","lint":"eslint lib/*.js","test":"npm run lint && jest --coverage","start":"npm run dist","travis":"npm test && cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"jmperez","email":"jmperez1985@gmail.com"},"repository":{"url":"git+https://github.com/jmperez/promise-throttle.git","type":"git"},"_npmVersion":"3.10.3","description":"A library to throttle promises","directories":{},"_nodeVersion":"6.6.0","devDependencies":{"sinon":"~1.12.2","eslint":"^3.8.0","promise":"~6.1.0","jest-cli":"^16.0.2","coveralls":"~2.11.2"},"_npmOperationalInternal":{"tmp":"tmp/promise-throttle-0.3.1.tgz_1477172544981_0.7659014384262264","host":"packages-18-east.internal.npmjs.com"}},"0.4.0":{"name":"promise-throttle","version":"0.4.0","keywords":["promise","throttle"],"author":{"name":"Jose M. Perez"},"license":"MIT","_id":"promise-throttle@0.4.0","maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"homepage":"https://github.com/jmperez/promise-throttle","bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"dist":{"shasum":"533c15c6b7be5b3ee9a8a5e3bed4c5bd0f7fabb5","tarball":"https://registry.npmjs.org/promise-throttle/-/promise-throttle-0.4.0.tgz","fileCount":3,"integrity":"sha512-11BChnC7EjLjZeCArlFuQEaIIuI6Y82VDZV+qD/LPQ2y5nHmjCv0N4K17uQ7+dgLSHXK8Hw9Et6cq1t6tN+DTA==","signatures":[{"sig":"MEUCIQCHyOsoq3UcK4ZkEl4QhFDkxRj/7U+Tf45m8zIg6zEY5gIgJ0AlUDENJejk0cX8fo+RVnkOEEwJ/GIm1lfFxI6bgoc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4286},"main":"lib/main.js","_from":".","files":["lib/main.js"],"_shasum":"533c15c6b7be5b3ee9a8a5e3bed4c5bd0f7fabb5","gitHead":"d1472276b2504e962176e2ed65280b8d9856d1a8","scripts":{"dist":"mkdir -p dist && browserify lib/browser.js -o dist/promise-throttle.js","lint":"eslint lib/*.js","test":"npm run lint && jest --coverage","start":"npm run dist","travis":"npm test && cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"jmperez","email":"jmperez1985@gmail.com"},"repository":{"url":"git+https://github.com/jmperez/promise-throttle.git","type":"git"},"_npmVersion":"3.8.6","description":"A library to throttle promises","directories":{},"_nodeVersion":"6.0.0","_hasShrinkwrap":false,"devDependencies":{"sinon":"^4.0.0","eslint":"^4.18.0","promise":"^8.0.0","jest-cli":"^22.0.0","coveralls":"~3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/promise-throttle_0.4.0_1519204484804_0.004330532045589086","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"promise-throttle","version":"1.0.0","keywords":["promise","throttle"],"author":{"name":"Jose M. Perez"},"license":"MIT","_id":"promise-throttle@1.0.0","maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"homepage":"https://github.com/jmperez/promise-throttle","bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"dist":{"shasum":"6ab608b743b20f6db2c8f8050108ac9d33bbb25c","tarball":"https://registry.npmjs.org/promise-throttle/-/promise-throttle-1.0.0.tgz","fileCount":4,"integrity":"sha512-pNX5XbCcuy97pZMqFfqCQTLe9oClKYoju2A3veEGvIEFDZKj1+vEbOWrO2IBN0OGhq5UpZ9RHXHnjFk+pm437g==","signatures":[{"sig":"MEQCICeXMe0RXLH5sKrNos0BL4TjgvLftnEFexmyTxwVpfJwAiB5K7F7g9ToK2tqmLg98Ppv6InjO7EjBHJdRj9kInCE6Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8729},"main":"lib/main.js","files":["lib/main.js"],"gitHead":"62cabc789079ea11cbf05fba23040499b6a36bd7","scripts":{"dist":"mkdir -p dist && browserify lib/browser.js -o dist/promise-throttle.js","lint":"eslint lib/*.js","test":"npm run lint && jest --coverage","start":"npm run dist","travis":"npm test && cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"jmperez","email":"jmperez1985@gmail.com"},"repository":{"url":"git+https://github.com/jmperez/promise-throttle.git","type":"git"},"_npmVersion":"5.6.0","description":"A library to throttle promises","directories":{},"_nodeVersion":"9.10.0","_hasShrinkwrap":false,"devDependencies":{"sinon":"^5.0.0","eslint":"^4.18.0","promise":"^8.0.0","jest-cli":"^22.0.0","coveralls":"~3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/promise-throttle_1.0.0_1522273344908_0.4834704504236931","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"promise-throttle","version":"1.0.1","keywords":["promise","throttle"],"author":{"name":"Jose M. Perez"},"license":"MIT","_id":"promise-throttle@1.0.1","maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"homepage":"https://github.com/jmperez/promise-throttle","bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"dist":{"shasum":"4bb871c9a4ad99dd224dbf57b9e3c9384020656c","tarball":"https://registry.npmjs.org/promise-throttle/-/promise-throttle-1.0.1.tgz","fileCount":4,"integrity":"sha512-pdiK8b2RU2e93U0rBK7YyO18x74OQPsg3sFmyCGGNYNbfnyUwWiU5g6mFgWtOW8KsPnCYVHIOzm1iRwv0YWXrw==","signatures":[{"sig":"MEYCIQCSY6JmxFueZSPE6+w8rMX7jETiIQQi2XM+ch8D2UztUgIhAPy9N4nDQOMbzY6k9hEzf7c0o2NFUKdj66Oe0QEqHtlm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGaBkCRA9TVsSAnZWagAAVtwP/3foUZUVUU6+8mMB3gU1\nZaoGjKrXMw5D77hDtCfzoQzgBAYvQULRZDJnHmROxH4il2J84n25KjD+/okm\nEl14ibuuZkGLTYdUXojNVVOfBLK48cIN/5XyR6Oug2taEvEnbWgQhAWKS0zY\n49fvKIXLacOPNOqSwgCzl9PgsjrUVlw/RIUcq8xJVXKrfME0RYPq6dQMKUAf\nz+sEgqqCUnCcD9PqFKBZ+HHnuUh6GfBm1t+FTa6+/B25l8Ue/qxoy9MHqEdN\ngn40nmsBXHgZVXNC9xPZumk4peWaIhhH7bh3WWYs5kOnNwkBGV0A0qwoT1ey\n+BQiDYYcvKgXOfTImk42gscuYKfk2TTlrDnsnannbV+PJs6u7roQBJSAZ3bG\nH4Tj5HX29p54QmjgwamC+jaURmeQxjPFhjJK2NR6eTldygBm+RT0zjW1CkSz\nu61lsSHMEMo9964VeskWj/pDMcDOkYOGVFhOgs310ORK3kvrkPp2uaEENShF\nV7cPGzbmOog3DBIapHaLaJKYwFVhyXHfE1B/fQyZxS5BIgdx6EZjtWTRAkaW\nUhM6XpD8GpsMngiTEquwwHER3AkgVv+N1eUAuDa8v16czHKbQneoWOgVtDXp\niSEGMQBJF9yrebXeaRY28J9bEQ45fe7R6RGmAzduPMV7U8y3USqhw1OS9hiX\n+VE2\r\n=93aX\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/"},"main":"lib/main.js","gitHead":"0f4de4e0cd1b74ebd4b9dea80dff100b804e87a4","scripts":{"dist":"mkdir -p dist && browserify lib/browser.js -o dist/promise-throttle.js","lint":"eslint lib/*.js","test":"npm run lint && jest --coverage","start":"npm run dist","travis":"npm test && cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"jmperez","email":"jmperez1985@gmail.com"},"repository":{"url":"git+https://github.com/jmperez/promise-throttle.git","type":"git"},"_npmVersion":"6.9.0","description":"A library to throttle promises","directories":{},"_nodeVersion":"10.16.0","_hasShrinkwrap":false,"devDependencies":{"sinon":"^7.2.3","eslint":"^6.0.1","promise":"^8.0.2","jest-cli":"^24.8.0","coveralls":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/promise-throttle_1.0.1_1561960548091_0.07407688272525736","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"promise-throttle","version":"1.1.0","keywords":["promise","throttle"],"author":{"name":"Jose M. Perez"},"license":"MIT","_id":"promise-throttle@1.1.0","maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"homepage":"https://github.com/jmperez/promise-throttle","bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"dist":{"shasum":"2067082a0544a66e70ec35441fee77b8239f3376","tarball":"https://registry.npmjs.org/promise-throttle/-/promise-throttle-1.1.0.tgz","fileCount":4,"integrity":"sha512-8di1G4S7Re+jpburKLzqla7jYyywbZNZuqJiM/uqrOojx5yOmZmMKpVWwDilGwJaVZVyFiyDVvkxyJmraYFEOg==","signatures":[{"sig":"MEYCIQCqWlbW0Vtb0aQW/Zr60jhjrQTQuLhCs98edGaSAnPvAAIhAJrFsj9KHB/DRVi1/tZWjNydv6pjc20X/5UI+FqvknWv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJes5oDCRA9TVsSAnZWagAA1oIP/1F6yFDzju/X5UjWBzOF\nWiop7fbELuVVOEvN0ixu1MppljEAU4gWBiuvFKlnccAow7mGqXoGSj4850lz\nZKROOv6973nouSQecesvb/InhKX8sBAuC20LaYOv1QcVuqG4AFy+lvSR6vHu\nkWTMuVg3Y/q4HGnjfXpZaRntbtXRZZdqGnweZU/ywMNVvjt8+NVl3FEkiv2r\n4gFbLg8f0fcte00J8OYjr0u6MUmTfkNud76UHTjIMDOUYfJCt3MfE2kUVXZt\nEPVVzL8m0tg7DGZXla2ULDs6xNMyhLsAzmC8yKTqi3fIM/NclguVbN8laP6p\n7f3RfzTpo8reI10gexjjpdFLM3oRl2VLJHvDe9fay6SITIZxqzn5IIDWFUSM\nNRRPypJBUrBxWJ0s0fpWUE3JzYkk+kJlmjcG6wGCFWDRQYpGjUriY3Oe94Ri\nDGm2XZMgn+8/uowJfUNBDiBhcvcQUMT4N69SWxSHW3k19ubPOr7CuWnXaYLB\nKNiXpHF8mzqm4QnHgTAbVqH+Ez1gc57a/FJvL9xiYmAaE9mmoFsGRfRklAEw\nb5Ef7j1SN90hJlHL+5K85aP4PwFygyp+zQ1v++7lh6+O55bOJR0aEQkFtINo\n04SJTggmdNXQdiiANkmKDdjNHPM2HPmbbbKVVEqRAwBrptZ/uh7BBjyEeIs6\nFPbj\r\n=EXXQ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/"},"main":"lib/main.js","gitHead":"ae01fccd58b4f3c539f18cf6f4269a97be4f9c19","scripts":{"dist":"mkdir -p dist && browserify lib/browser.js -o dist/promise-throttle.js","lint":"eslint lib/*.js","test":"npm run lint && jest --coverage","start":"npm run dist","travis":"npm test && cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"jmperez","email":"jmperez1985@gmail.com"},"repository":{"url":"git+https://github.com/jmperez/promise-throttle.git","type":"git"},"_npmVersion":"6.12.1","description":"A library to throttle promises","directories":{},"_nodeVersion":"12.13.1","_hasShrinkwrap":false,"devDependencies":{"sinon":"^9.0.2","eslint":"^6.1.0","promise":"^8.1.0","jest-cli":"^26.0.0","coveralls":"^3.1.0"},"_npmOperationalInternal":{"tmp":"tmp/promise-throttle_1.1.0_1588828674935_0.39228522030298385","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"promise-throttle","version":"1.1.1","keywords":["promise","throttle"],"author":{"name":"Jose M. Perez"},"license":"MIT","_id":"promise-throttle@1.1.1","maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"homepage":"https://github.com/jmperez/promise-throttle","bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"dist":{"shasum":"cdd9afc86093df6aada3757f43ad603a9dbe9a12","tarball":"https://registry.npmjs.org/promise-throttle/-/promise-throttle-1.1.1.tgz","fileCount":5,"integrity":"sha512-iyRmItmSR23z816c35oRkY7Vkle9rKqEqc3wqwH8krIptsLmsFCMm+l47XWXdb/nQeqMZsBbCEFiKPtGwcE3Cg==","signatures":[{"sig":"MEUCIQCN0a+M67uJbMtTAtuR/GEc6bUROXLhKV7UDipCmWBnPgIgVlky/vudRkFC88bxy5dnyCNpYzA7+Pvzrog6K2Uo0XQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10495,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVPRYCRA9TVsSAnZWagAAS/YP/3+97EezJ+4EKXiHZgDM\nAezo+Y5SRDR8pmzWfVZKNdwCvd2q9iPdtcckXtN3v7nLLcVeWXIEdUQ9m45V\nnd53vm6mvJD55WgNIeRx5YYQo3D40T7IThZhT0jQWzNsSEU3VrsF7eHzV5EV\n955qcoIKPMBPCK/5txglv4mYIN0o1Zrz2QnwmjjtSCrKpjShUXWZtKqdHNUx\nslw59FIUxy+UffowILxELItz1R5s9j4ME0eVPBUojXns4gOCpPoGCk7ZV7dP\nyEaUc5zWMBb6g2UyVusHKMNW3XCamLHTyvpLzECV16OC3YwMb9ynryE+h4UL\nA+wNbaRfh0BPGxj+9/J5sValAHXYdczMzw9EbamPfhahU8AJSSwCI3uxE420\nGxFqDsGek7tXweF46IX0bH+pue3ip0JImdITk1mIHZQNxqw2F+eHcUgp2ykf\n1KS/2IEXa8pIjKoGh9y1An3cfKv3WWnYm0z/2yz6nfUfyhKaYLhOpKEq5FqQ\ndeJCl12dIhV7uDrCKx/76aQTDD9Uy7e+EXcn1a3hW7gxUIbcuo+B+LRSAoKf\nOsxYZIuB7iAOn6uJvPPu4O0J7TJyhnQr/xZq0mse6IuK36kCgdzniotCrdv7\nU1KeZL/l0/DXPHTdynOEZmd6BboX5tkU2/hOCAZPmpUml3W+xV+EAPd+DD8v\nurSk\r\n=XcDg\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/"},"main":"lib/main.js","gitHead":"4395ff7dda03250fca21aaae56d7a734f399bcce","scripts":{"dist":"mkdir -p dist && browserify lib/browser.js -o dist/promise-throttle.js","lint":"eslint lib/*.js","test":"npm run lint && jest --coverage","start":"npm run dist","travis":"npm test && cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"jmperez","email":"jmperez1985@gmail.com"},"repository":{"url":"git+https://github.com/jmperez/promise-throttle.git","type":"git"},"_npmVersion":"6.14.6","description":"A library to throttle promises","directories":{},"_nodeVersion":"12.18.3","_hasShrinkwrap":false,"devDependencies":{"sinon":"^9.0.2","eslint":"^6.1.0","promise":"^8.1.0","jest-cli":"^26.0.0","coveralls":"^3.1.0","browserify":"^16.5.1"},"_npmOperationalInternal":{"tmp":"tmp/promise-throttle_1.1.1_1599403096196_0.14958003092015426","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"promise-throttle","version":"1.1.2","keywords":["promise","throttle"],"author":{"name":"Jose M. Perez"},"license":"MIT","_id":"promise-throttle@1.1.2","maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"homepage":"https://github.com/jmperez/promise-throttle","bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"dist":{"shasum":"8a59d0424b6f9673aa8405c8b6bd4b5e4f7f71db","tarball":"https://registry.npmjs.org/promise-throttle/-/promise-throttle-1.1.2.tgz","fileCount":5,"integrity":"sha512-dij7vjyXNewuuN/gyr+TX2KRjw48mbV5FEtgyXaIoJjGYAKT0au23/voNvy9eS4UNJjx2KUdEcO5Yyfc1h7vWQ==","signatures":[{"sig":"MEYCIQCiYV/ccx1rTom2jVvm7BR6vzPawy/bCRaRO0TQYNn+iwIhAJ0PWe5RJOwG/C1qmdagoT0YfV/F/TJNoWrGTK/NtuY/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10567,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffAs3CRA9TVsSAnZWagAA6cwP/0781WX76jXS3ET5+9I1\nfkDMhFooLl17vZcBOMY+qCUptvztlP/nTZidMvKq2Say58NitoWRcmvkd1O9\n6aPnooaKQo9KXPfNsNT8yzUVXSPPA8/ppxRIbMHi+xrHfTrYj7Fzsisp3ogb\nlTnwDn8+uQAiLQadAVwIZ0wx7ddui74NNn1DcyOAw2Xa84Yf0DBixpTTVlSL\n/MIK+1r+3gMuVyDWy75mMOphViiM3ZucirICadYpCqS0KzJcEmVvmNQYrVay\nByRBe3Vv775lrTzDMrSMwCaRimN3TGqAM24/mh1mbNni66Rnr6qv/t/Np6u2\n+y3ZTsFVdfHIWOYTTSY5QUNxUtMfGOQBqnti1/D68ow8thnXI7d+QWyF156/\nfMyJL0sVemc1+iVbIh7GGiFxpqG2n0Aau+ZF7rxcIJNgoUZpyOj65gTCwrpu\nPhpGXlnsYHsOp1vmrc7FM3zCuSiBYuXIq4zu0DSIijebm7RMbV66rreJ2J8o\nLWf9nHcGo87pGdh+kWW0LcLhMu1LnISKy0bmzLNVssw5qakQFPVVuR7T//ih\nUIjj/psjlj/fnne4dJE9ZoPO6EaY4yKVlini0+LxSoxaNToDsYfdDkuoLOAF\njR7R0UIxBSf/kXXH8RClsXGTXaJJEqxmggbauUo4CtVDERIhYXYUHfwKATXg\nOCeC\r\n=cW3K\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/"},"main":"lib/main.js","gitHead":"39b079722f0a1d6d117968bc7beb7f6dac19d7c4","scripts":{"dist":"mkdir -p dist && browserify lib/browser.js -o dist/promise-throttle.js","lint":"eslint lib/*.js","test":"npm run lint && jest --coverage","start":"npm run dist","travis":"npm test && cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"jmperez","email":"jmperez1985@gmail.com"},"repository":{"url":"git+https://github.com/jmperez/promise-throttle.git","type":"git"},"_npmVersion":"6.14.6","description":"A library to throttle promises","directories":{},"_nodeVersion":"12.18.3","_hasShrinkwrap":false,"devDependencies":{"sinon":"^9.0.2","eslint":"^6.1.0","promise":"^8.1.0","jest-cli":"^26.0.0","coveralls":"^3.1.0","browserify":"^16.5.1"},"_npmOperationalInternal":{"tmp":"tmp/promise-throttle_1.1.2_1601964854737_0.15138973421035806","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"promise-throttle","version":"2.0.0","keywords":["promise","throttle"],"author":{"name":"Jose M. Perez"},"license":"MIT","_id":"promise-throttle@2.0.0","maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"homepage":"https://github.com/jmperez/promise-throttle","bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"dist":{"shasum":"342a9110c14ccee731f439639b6027c79b9f0cac","tarball":"https://registry.npmjs.org/promise-throttle/-/promise-throttle-2.0.0.tgz","fileCount":6,"integrity":"sha512-kLWMj7ep9XAHRNBS91DQiW085UWM9sJDLtN9lQXoCd7qhzRZ0sYN2RmiAOLOahyaM1HmbXjThNzHB1phT1F8TQ==","signatures":[{"sig":"MEUCIQCspOlJRHx3R5ZV+g3Q2l2SeGuh41tBnjbnpCgtp1JUiQIgdFD8VhJhEsd5E615hsVnrCqYyyoH9LuTOzERNn46d0s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDNKFHEvZaGCYa2eYXkxFa58of0mCtQ7O6q6kRqcNLQggIgGA1Wc+XeTe9yUhtKsQPaWUMF5Hothf8L5i/CxKp0mQE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20978},"main":"lib/main.js","types":"index.d.ts","unpkg":"dist/promise-throttle.js","gitHead":"27a3c7494981a87ae6783e7e4c5499fc19afbc5e","scripts":{"dist":"mkdir -p dist && browserify lib/browser.js -o dist/promise-throttle.js","lint":"eslint lib","test":"npm run lint && jest --coverage","start":"npm run dist"},"_npmUser":{"name":"jmperez","email":"jmperez1985@gmail.com"},"jsdelivr":"dist/promise-throttle.js","repository":{"url":"git+https://github.com/jmperez/promise-throttle.git","type":"git"},"_npmVersion":"11.7.0","description":"A library to throttle promises","directories":{},"_nodeVersion":"25.2.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.5.2","eslint":"^10.13.0","globals":"^17.13.0","promise":"^8.3.0","@eslint/js":"^10.0.1","browserify":"^17.0.1","@stylistic/eslint-plugin":"^5.10.0"},"_npmOperationalInternal":{"tmp":"tmp/promise-throttle_2.0.0_1792946819321_0.9235684613875257","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"_id":"promise-throttle@2.1.0","bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"dist":{"shasum":"c86e88a734cd2f329d85ea79077d4d6aedc55a03","tarball":"https://registry.npmjs.org/promise-throttle/-/promise-throttle-2.1.0.tgz","fileCount":6,"integrity":"sha512-DTRVUZeBHzxQLcsay35jX8R5VSPyNrVIq3iUYEHRBi7yLv7+Sn3f0DoOz2ZiHgLrd9ByAu6b13TmzYwF5KFOZA==","signatures":[{"sig":"MEYCIQCfO8At5uGD097NiDermnI4KWpD/+dRiQyeF05E4zikHwIhAK+Jtmt8jxIVB9MZLcOz2fHSHiDukEh7f2lsNOcujCrg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBsXW0IREQc3z4ONiOdAmJCzu62l+IwrU6YVcK+Wyy/7AiEA8jYITXfwqdFYNf/DPAmG4cRoXIH7Cbn9LJ3n01dG5zg="}],"unpackedSize":20310},"main":"lib/main.js","name":"promise-throttle","types":"index.d.ts","unpkg":"dist/promise-throttle.js","author":{"name":"Jose M. Perez"},"gitHead":"cc0133c580e268f54126063a52cdba56464a644e","license":"MIT","scripts":{"dist":"esbuild lib/browser.js --bundle --target=es2022 --outfile=dist/promise-throttle.js","docs":"typedoc","lint":"eslint lib","test":"npm run lint && jest --coverage","start":"npm run dist"},"version":"2.1.0","_npmUser":{"name":"jmperez","email":"jmperez1985@gmail.com"},"homepage":"https://jmperez.github.io/promise-throttle/","jsdelivr":"dist/promise-throttle.js","keywords":["promise","throttle"],"repository":{"url":"git+https://github.com/jmperez/promise-throttle.git","type":"git"},"_npmVersion":"11.7.0","description":"A library to throttle promises","directories":{},"maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"_nodeVersion":"25.2.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.5.2","eslint":"^10.13.0","esbuild":"^0.28.2","globals":"^17.13.0","promise":"^8.3.0","typedoc":"^0.28.20","@eslint/js":"^10.0.1","typescript":"~6.0","@stylistic/eslint-plugin":"^5.10.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/promise-throttle_2.1.0_1792950000956_0.44087146095843277"}}},"time":{"created":"2015-02-16T19:41:14.893Z","modified":"2026-10-25T17:40:01.375Z","0.0.1":"2015-02-16T19:41:14.893Z","0.1.0":"2015-02-17T22:18:34.776Z","0.2.0":"2015-03-31T17:38:02.686Z","0.3.0":"2016-10-22T16:57:18.919Z","0.3.1":"2016-10-22T21:42:26.313Z","0.4.0":"2018-02-21T09:14:45.797Z","1.0.0":"2018-03-28T21:42:24.950Z","1.0.1":"2019-07-01T05:55:48.211Z","1.1.0":"2020-05-07T05:17:55.035Z","1.1.1":"2020-09-06T14:38:16.312Z","1.1.2":"2020-10-06T06:14:14.857Z","2.0.0":"2026-10-25T16:46:59.397Z","2.1.0":"2026-10-25T17:40:01.087Z"},"bugs":{"url":"https://github.com/jmperez/promise-throttle/issues"},"author":{"name":"Jose M. Perez"},"license":"MIT","homepage":"https://jmperez.github.io/promise-throttle/","keywords":["promise","throttle"],"repository":{"url":"git+https://github.com/jmperez/promise-throttle.git","type":"git"},"description":"A library to throttle promises","maintainers":[{"name":"jmperez","email":"jmperez1985@gmail.com"}],"readme":"Promise Throttle &nbsp; [![CI](https://github.com/JMPerez/promise-throttle/actions/workflows/ci.yml/badge.svg)](https://github.com/JMPerez/promise-throttle/actions/workflows/ci.yml)\n==================\n\n\nThis small ([less than 1KB minified and compressed](https://bundlephobia.com/package/promise-throttle)) dependency-free library limits promises run per unit of time. Useful for Rest API consumption, which is normally rate-limited to a certain number of requests in a set amount of time.\n\nTo use, simply add functions to the `PromiseThrottle` that, once called, return a `Promise`.\n\nThe API reference is available at [jmperez.github.io/promise-throttle](https://jmperez.github.io/promise-throttle/).\n\n## Installation\n\n```sh\nnpm install promise-throttle\n```\n\nIt works in Node.js 18+ and modern browsers. If you are using it in a browser without a bundler, you can load it from a CDN. It exposes a global `PromiseThrottle`:\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/promise-throttle@2\"></script>\n<script>\n  const throttle = new PromiseThrottle({ requestsPerSecond: 5 });\n</script>\n```\n\n## Use\n\n```js\nimport PromiseThrottle from 'promise-throttle'; // or: const PromiseThrottle = require('promise-throttle');\n\nconst throttle = new PromiseThrottle({ requestsPerSecond: 2 });\n\n// Pass a function that returns a promise. It is called when the throttling allows it\nconst response = await throttle.add(() => fetch('https://api.example.com/users/1'));\n\n// Queue several functions at once. These 6 requests are spread over ~2.5 seconds\nconst ids = [1, 2, 3, 4, 5, 6];\nconst users = await throttle.addAll(\n  ids.map((id) => () => fetch(`https://api.example.com/users/${id}`).then((res) => res.json()))\n);\n```\n\nMake sure you pass a function and not a promise: `throttle.add(fetch(url))` would send the request right away, because the promise has already been created.\n\nThe promise returned by `add` is resolved or rejected with the result of the function. If the function throws, the promise is rejected with the thrown error, and if it returns a value that is not a promise, the promise is resolved with that value.\n\n### Constructor options\n\n#### requestsPerSecond\nThe maximum amount of functions that will be called per second. It must be a positive number, otherwise the constructor throws a `TypeError`. Use `Infinity` to disable throttling.\n\n#### promiseImplementation\nThe `Promise` constructor used to create the promises returned by `add` and `addAll`. It defaults to the native `Promise`, so you only need it if you want to use a different library (e.g. [promise](https://www.npmjs.com/package/promise) or [bluebird](https://www.npmjs.com/package/bluebird)).\n\n```js\nimport Bluebird from 'bluebird';\n\nconst throttle = new PromiseThrottle({\n  requestsPerSecond: 5,\n  promiseImplementation: Bluebird\n});\n```\n\n### Options for add and addAll\n\n#### weight\nYou can specify `weight` option for each function to dynamically adjust throttling depending on\naction \"heaviness\". For example, an action with `weight: 3` will be throttled as three regular actions: it is called as soon as it is its turn, and the next action waits three times as long as it would after a regular one. By default weight of all actions is 1.\n\n```js\n// The search endpoint counts as 3 requests in the API rate limit\nthrottle.add(() => fetch('https://api.example.com/search?q=foo'), { weight: 3 });\n```\n\n#### signal\nYou can cancel queued functions using an [AbortSignal](https://developer.mozilla.org/docs/Web/API/AbortController). Once it is aborted, the queued functions added with the signal are not called and their promises are rejected right away, without counting towards the limit of requests per second. Functions added without the signal are not affected, so you can make only some of them abortable.\n\nFunctions that have already been called are not affected either, but you can pass the same signal to them (e.g. to `fetch`) to cancel what they are doing:\n\n```js\nconst controller = new AbortController();\nconst { signal } = controller;\n\nthrottle\n  .addAll(urls.map((url) => () => fetch(url, { signal })), { signal })\n  .catch((error) => {\n    if (error.name === 'AbortError') {\n      console.log('Requests cancelled');\n    }\n  });\n\n// later, e.g. when the user leaves the page\ncontroller.abort();\n```\n\nWhen aborting, the promise returned by `add` or `addAll` is rejected with the reason of the signal, which is an `AbortError` unless you pass a different one to `controller.abort(reason)`.\n\n## TypeScript\n\nThe package includes type definitions. With `esModuleInterop` enabled (or when using ES modules):\n\n```ts\nimport PromiseThrottle, { QueueOptions } from 'promise-throttle';\n```\n\nOtherwise use `import PromiseThrottle = require('promise-throttle');`.\n\n## Upgrading from 1.x\n\n- The `weight` of an action now delays the action that comes after it, instead of the action itself.\n- Aborted promises are rejected as soon as the signal is aborted, with `signal.reason` when available.\n- The constructor throws a `TypeError` when `requestsPerSecond` is not a positive number.\n- The type definitions use `export =`. Enable `esModuleInterop` to keep using `import PromiseThrottle from 'promise-throttle'`.\n\n## Development\n\nInstall the dependencies using `npm install`.\nRun `npm test` to lint and run the tests with code coverage, `npm run dist` to generate the browser build, and `npm run docs` to generate the documentation site in `docs/`.\n\n## Projects using it\n\nSee how some projects are using it:\n\n- [ivasilov/promised-twitter](https://github.com/ivasilov/promised-twitter)\n- [JMPerez/spotify-dedup](https://github.com/JMPerez/spotify-dedup)\n- [JoseBarrios/mturk-api](https://github.com/JoseBarrios/mturk-api)\n- [zackiles/lucy-bot](https://github.com/zackiles/lucy-bot)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}