{"name":"raf-loop","version":"1.1.0","description":"a minimal requestAnimationFrame render loop","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"@mattdesl/raf":"^3.0.0","events":"^1.0.2","inherits":"^2.0.1","right-now":"^1.0.0"},"devDependencies":{"tape":"^3.0.3"},"scripts":{"test":"node test.js"},"keywords":["raf","request","animation","frame","requestAnimationFrame","loop","game","render","2d"],"repository":{"type":"git","url":"git://github.com/mattdesl/raf-loop.git"},"homepage":"https://github.com/mattdesl/raf-loop","bugs":{"url":"https://github.com/mattdesl/raf-loop/issues"},"gitHead":"58254d81e7cb4c3bfc71e51fccaf9b4f530f001c","_id":"raf-loop@1.1.0","_shasum":"1f40e6ea5e54228db66c8003ed736906a5e64d5c","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"1f40e6ea5e54228db66c8003ed736906a5e64d5c","tarball":"http://registry-npm.ywwl.com/raf-loop/download/raf-loop-1.1.0.tgz","integrity":"sha512-JD4hYY/n4rbtnGX5stPZgruwgN5YQqMC5jn8wrSpQRd/IwDyH8nhWvxOsMp4rYwV0iOZMEB4wfeRq40CUfTVNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwWe8yqujgPfQupLbmzIGrZMJJTP2DNl1IIX4Fr9cgcgIgGncUOhOP1vpXkF34hGFBrZjWix6mdYaJ/PrsJJ0rtT0="}],"size":2063,"noattachment":false,"key":"/raf-loop/-/raf-loop-1.1.0.tgz"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"directories":{},"readme":"# raf-loop\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nA minimal requestAnimationFrame render loop for node and the browser, using high-performance timing where possible.\n\n```js\nvar loop = require('raf-loop')\n\nvar engine = loop(function(dt) {\n    // delta time in milliseconds \n}).start()\n```\n\n## Usage\n\n[![NPM](https://nodei.co/npm/raf-loop.png)](https://nodei.co/npm/raf-loop/)\n\n#### `engine = loop([fn])`\n\nCreates a new loop with an optional function to receive tick events. The function will be called with delta time as the first parameter, in milliseconds.\n\n#### `engine.start()`\n\nStarts the render loop and returns this engine, for chaining.\n\n#### `engine.stop()`\n\nStops the render loop and cancels the currently requested animation frame.\n\n#### `engine.on('tick', fn)`\n\nAttaches another function to the render loop.\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/mattdesl/raf-loop/blob/master/LICENSE.md) for details.\n","publish_time":1431192405143,"_cnpm_publish_time":1431192405143,"dist-tags":{"latest":"1.1.3"}}