{"_id":"request-interval","_rev":"6-95dcfa04630b88a6f41e05c41a98a43d","name":"request-interval","description":"Like setInterval() but with requestAnimationFrame()","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"request-interval","version":"1.0.0","description":"Like setInterval() but with requestAnimationFrame()","main":"index.js","scripts":{"test":"npm run build && mocha-phantomjs ./test/runner.html","build":"browserify -d -r assert -r ./index.js:request-interval > bundle.js","watch":"onchange 'index.js' 'test/index.js' -- npm test"},"keywords":["requestAnimationFrame","setInterval"],"license":"MIT","author":{"name":"Antoine Lehurt","email":"code@kewah.com","url":"http://kewah.com/"},"homepage":"https://github.com/nk-components/request-interval","repository":{"type":"git","url":"https://github.com/nk-components/request-interval"},"bugs":{"url":"https://github.com/nk-components/request-interval/issues"},"dependencies":{"component-raf":"^1.2.0","time-now":"^0.2.1"},"devDependencies":{"browserify":"^7.0.2","mocha":"^2.0.1","mocha-phantomjs":"^3.5.2","onchange":"0.0.2","phantomjs":"^1.9.12"},"browser":{"raf":"component-raf"},"gitHead":"a7fdfe116ed495151ab7ffde2a4d1b75c14ecb30","_id":"request-interval@1.0.0","_shasum":"0994e8e9386b78f388addba12111fc249585d547","_from":".","_npmVersion":"2.1.14","_nodeVersion":"0.10.33","_npmUser":{"name":"kewah","email":"code@kewah.com"},"maintainers":[{"name":"kewah","email":"code@kewah.com"}],"dist":{"shasum":"0994e8e9386b78f388addba12111fc249585d547","tarball":"https://registry.npmjs.org/request-interval/-/request-interval-1.0.0.tgz","integrity":"sha512-/iX8ci6dbvNcLWDoK/L1c+QIEUYfT/pW42dnl78L6T93kfreiDjulEi3eLs/FfmK7EDZ6NhV0HsfB8Qb6tierg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmY0du2NOt/Rt7HFTt+vno/QA+ACn25VjIpU0wYDDzMQIgFHb0HfvaPvdMqVy8YubtiFTMMj3lplw0O9mWFTzVUC4="}]},"directories":{}},"2.0.0":{"name":"request-interval","version":"2.0.0","description":"Like setInterval() but with requestAnimationFrame()","main":"index.js","scripts":{"test":"npm run build && mocha-phantomjs ./test/runner.html","build":"browserify -d -r raf -r assert -r ./index.js:request-interval > bundle.js","watch":"onchange 'index.js' 'test/index.js' -- npm test"},"keywords":["requestAnimationFrame","setInterval"],"license":"MIT","author":{"name":"Antoine Lehurt","email":"code@kewah.com","url":"http://kewah.com/"},"homepage":"https://github.com/nk-components/request-interval","repository":{"type":"git","url":"git+https://github.com/nk-components/request-interval.git"},"bugs":{"url":"https://github.com/nk-components/request-interval/issues"},"devDependencies":{"browserify":"^13.0.0","component-raf":"^1.2.0","mocha":"^2.0.1","mocha-phantomjs":"^4.0.2","onchange":"^2.2.0","phantomjs":"^2.1.7"},"browser":{"raf":"component-raf"},"gitHead":"1c754d57cd69158222b232552f2fc96c5c94f8d3","_id":"request-interval@2.0.0","_shasum":"eb884017d0c79b92f1a805259be526805c731faf","_from":".","_npmVersion":"3.8.2","_nodeVersion":"5.7.0","_npmUser":{"name":"kewah","email":"code@kewah.com"},"dist":{"shasum":"eb884017d0c79b92f1a805259be526805c731faf","tarball":"https://registry.npmjs.org/request-interval/-/request-interval-2.0.0.tgz","integrity":"sha512-Kb7FcXQveHIUn5AuM5fhPuEfjJwdUPQPlMAH9n8t9Lfydn17dL/KF4DkE4hhkdkGyhGSm9A0mcUi/PXd2KspOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDjmbdVSxS/Hv0cmmWXffJh9/9OWzr6jCOUOxet2+qB7AiEA6oGBcaKaF1/xsQAbVTeX/HIbecsjLlgdvc/z2dyUZPc="}]},"maintainers":[{"name":"kewah","email":"code@kewah.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/request-interval-2.0.0.tgz_1460189977506_0.1697382244747132"},"directories":{}}},"readme":"# request-interval [![Build Status](https://travis-ci.org/nk-components/request-interval.svg?branch=master)](https://travis-ci.org/nk-components/request-interval)\n\nLike `setInterval()` but using `requestAnimationFrame().`  \nYou can also find `requestTimeout` component [here](https://github.com/nk-components/request-timeout).\n\n## Installation\n\nWith [npm](http://npmjs.org) do:\n\n```bash\n$ npm install request-interval --save\n```\n\nInstall with [component(1)](http://component.io):\n\n```\n$ component install nk-components/request-interval\n```\n\n## API\n\n```js\nvar requestInterval = require('request-interval');\n\nvar id = requestInterval(300, function() {\n  // do something\n});\n\n// [...]\n// stop\nrequestInterval.clear(id);\n```\n\nIf you need to support IE9, add a polyfill for `requestAnimationFrame()` and `cancelAnimationFrame()`\n\n## License\n\nMIT\n\nInspired by [Joe Lambert's Gist](https://gist.github.com/joelambert/1002116#file-requestinterval-js).\n","maintainers":[{"name":"kewah","email":"code@kewah.com"}],"time":{"modified":"2022-06-26T11:31:18.744Z","created":"2014-12-21T18:47:21.011Z","1.0.0":"2014-12-21T18:47:21.011Z","2.0.0":"2016-04-09T08:19:39.884Z"},"homepage":"https://github.com/nk-components/request-interval","keywords":["requestAnimationFrame","setInterval"],"repository":{"type":"git","url":"git+https://github.com/nk-components/request-interval.git"},"author":{"name":"Antoine Lehurt","email":"code@kewah.com","url":"http://kewah.com/"},"bugs":{"url":"https://github.com/nk-components/request-interval/issues"},"license":"MIT","readmeFilename":"README.md","users":{"black-black-cat":true}}