{"_id":"@mattdesl/raf","_rev":"3-48d793b9a0a9cb09923d3bf490ad461b","name":"@mattdesl/raf","description":"requestAnimationFrame polyfill for node and the browser","dist-tags":{"latest":"3.0.0"},"versions":{"3.0.0":{"name":"@mattdesl/raf","version":"3.0.0","description":"requestAnimationFrame polyfill for node and the browser","main":"index.js","scripts":{"testling":"browserify test.js | testling","test":"node test.js"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/raf.git"},"keywords":["requestAnimationFrame","polyfill"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"contributors":[{"name":"Christian Maughan Tegnér","email":"christian.tegner@gmail.com"}],"license":"MIT","devDependencies":{"testling":"~1.6.1","browserify":"~4.1.2","tape":"^4.0.0"},"dependencies":{"performance-now":"~0.1.3"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest"]},"gitHead":"a7c514b69d09772f8537297c37230ec50ad63349","bugs":{"url":"https://github.com/chrisdickinson/raf/issues"},"homepage":"https://github.com/chrisdickinson/raf","_id":"@mattdesl/raf@3.0.0","_shasum":"d42602bd2c7e2a011e7fa0b97bbfc3c4330eeb1f","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"d42602bd2c7e2a011e7fa0b97bbfc3c4330eeb1f","tarball":"https://registry.npmjs.org/@mattdesl/raf/-/raf-3.0.0.tgz","integrity":"sha512-qfKEptk4jU4HveC/8SIZYZgWiXwA8ksuCqSpetN0k+9XBzO7VNcb9+7g9iV7rHa7uuvqUwg32T9FhtFwtTKf+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHSUW8aDTk/EsPOIH2AQEpiZxYSZUCFHcd5rNevuIb7cAiEAojf/PS95tPlhRPNXdN+FyUixHXZYoaDjMsXRL7EUxrk="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]}},"readme":"# @mattdesl/raf\n\nA fork of [raf](https://github.com/chrisdickinson/raf) that improves the debugging experience, see [#26](https://github.com/chrisdickinson/raf/issues/26).\n\n---\n\n[![Browser Support](http://ci.testling.com/chrisdickinson/raf.png)](http://ci.testling.com/chrisdickinson/raf)\n\nrequestAnimationFrame polyfill for node and the browser.\n\nInstall:\n\n```\nnpm install @mattdesl/raf --save\n```\n\n\nUse:\n\n```js\nvar raf = require('raf')\n\nraf(function tick() {\n  // Animation logic\n  raf(tick)\n})\n```\n\n**Note:** The stream/event emitter logic found in versions prior to 1.0.0 can be found in [raf-stream](https://www.npmjs.org/package/raf-stream).\n\n\n\n# API\n\n[Documentation at Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web/API/window.requestAnimationFrame), [W3 Specification](http://www.w3.org/TR/animation-timing/#requestAnimationFrame)\n\n```js\nvar raf = require('raf')\n```\n\n## var handle = raf(callback)\n\n`callback` is the function to invoke in the next frame. `handle` is a long integer value that uniquely identifies the entry in the callback list. This is a non-zero value, but you may not make any other assumptions about its value.\n\n## raf.cancel(handle)\n\n`handle` is the entry identifier returned by `raf()`. Removes the queued animation frame callback (other queued callbacks will still be invoked unless cancelled).\n\n# Acknowledgments\n\nBased on work by Erik Möller, Paul Irish, and Tino Zijdel (https://gist.github.com/paulirish/1579671)\n\n# license\n\nMIT\n\n","maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"time":{"modified":"2022-06-12T21:17:19.311Z","created":"2015-05-09T17:22:49.872Z","3.0.0":"2015-05-09T17:22:49.872Z"},"homepage":"https://github.com/chrisdickinson/raf","keywords":["requestAnimationFrame","polyfill"],"repository":{"type":"git","url":"git://github.com/chrisdickinson/raf.git"},"contributors":[{"name":"Christian Maughan Tegnér","email":"christian.tegner@gmail.com"}],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"bugs":{"url":"https://github.com/chrisdickinson/raf/issues"},"license":"MIT","readmeFilename":"README.md"}