{"versions":{"0.0.2":{"name":"gasp","description":"Promise based throttling","author":{"name":"François Frisch francoisfrisch@gmail.com"},"version":"0.0.2","main":"index","dependencies":{"q":"^1.0.0"},"devDependencies":{"jshint":"~2.3.0","jasmine-node":"~1.11.0","istanbul":"~0.1.44"},"scripts":{"test":"istanbul test -x 'spec/**' jasmine-node -- --junitreport spec && jshint --verbose ."},"engine":"node >= 0.6.6","_id":"gasp@0.0.2","dist":{"shasum":"ba48a71546aaad75fe1162dd74c2fc15bedffb11","size":3621,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gasp/-/gasp-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"anonymous","email":"francoisfrisch@gmail.com"},"maintainers":[{"name":"anonymous","email":"francoisfrisch@gmail.com"}],"directories":{},"publish_time":1396045072345,"_cnpm_publish_time":1396045072345,"_hasShrinkwrap":false,"contributors":[]},"0.0.1":{"name":"gasp","description":"Promise based throttling","author":{"name":"François Frisch francoisfrisch@gmail.com"},"version":"0.0.1","main":"index","dependencies":{"q":"^1.0.0"},"devDependencies":{"jshint":"~2.3.0","jasmine-node":"~1.11.0","istanbul":"~0.1.44"},"scripts":{"test":"istanbul test -x 'spec/**' jasmine-node -- --junitreport spec && jshint --verbose ."},"engine":"node >= 0.6.6","_id":"gasp@0.0.1","dist":{"shasum":"4c64e9f8ef812ecf12796c841fb925f940a5aafe","size":8684,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gasp/-/gasp-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"anonymous","email":"francoisfrisch@gmail.com"},"maintainers":[{"name":"anonymous","email":"francoisfrisch@gmail.com"}],"directories":{},"publish_time":1396044604559,"_cnpm_publish_time":1396044604559,"_hasShrinkwrap":false,"contributors":[]}},"dist-tags":{"latest":"0.0.2"},"name":"gasp","time":{"modified":"2022-01-26T21:49:49.671Z","created":"2022-01-26T21:49:49.671Z","0.0.2":"2014-03-28T22:17:52.345Z","0.0.1":"2014-03-28T22:10:04.559Z"},"readme":"Promise based throttling\n\nUsage:\n\n```javascript\nvar Q = require(\"q\");\nvar gasp = require(\"gasp\");\n\n//throttle the XHR to a call every 100ms\nvar gaspingXHR = gasp(function (url) {\n    //make request (imagined api)\n    return request.makeRequest(url)\n}, 100)\n\nvar newUpdate;\n\n//then make the calls\nsetInterval(function() {\n    newUpdate = gaspingXHR(\"http://foo.com\");\n}, 1);\n\nnewUpdate.then(function (response) {\n    // do something ...\n})\n\n```","users":{}}