{"name":"raf","version":"3.4.1","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":"^2.1.0"},"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":"8b77b7b0f37275dce8930cd9888f1cab209fff6a","bugs":{"url":"https://github.com/chrisdickinson/raf/issues"},"homepage":"https://github.com/chrisdickinson/raf#readme","_id":"raf@3.4.1","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"cmtegner","email":"christian.tegner@gmail.com"},"dist":{"integrity":"sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==","shasum":"0742e99a4a6552f445d73e3ee0328af0ff1ede39","tarball":"http://registry-npm.ywwl.com/raf/download/raf-3.4.1.tgz","fileCount":7,"unpackedSize":8100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb3CdtCRA9TVsSAnZWagAA6GsP/AoLXvyvwU4WeA/5eK1Z\n9NlBe38Faxdp3DytT3Jm9vJUEZd7UPUWQkO1p3XVf7Ap+FzWBAeCp2EUHPm5\nO+BxagM3rL8GHsPwRcs8mLacHCglq25iw8Kjrjbk1LlhFZU8XRpoI8lKFl+H\naX6YiLeS73iizvR1fwG/b5RV6erl3ZmzXbmLJev1BFx2foYS0cgXnrNSBWS5\nZj11dB+HSg3Q1r1EJkpNb81GvjyKJXW6bZehUJrk/0V3ByEjXTHvuMxjid5s\n9GKX8fNKQqYctGvw0HVHpd5kmzQ9ekxKe+Ui7PVTgkIelMcv/w+u8KKnsGJB\nws9kOdzEDI19kBWhF92MmjlN6ydUqghdxpXAMEILaMpqtdFo+FBwkTH2sv7H\nStySfaocXRGCCoxQI5Bynuxfyvvw1RCsA35FfVcRPl1sUMYWqe9pz4vZRODm\nu+sbyNX+gJeZKIU3nLfIzI0LyyJwJxlYB2FqplIqfK+zbkPbxOTAIpHpw7Iz\nB0EWWiEUW84BApyXvIK83tb+7b7PBfoBW9g0TZQwy2u4ReVbe06XFrq0NMxB\nT9vr4k4Kol1CEFKrSSYftJ1GEVeda5KmDPZcnnhCQ8mjnlI77tA+w6r8LofY\ndvDmosTEIya9LE8E7gsheYsb6Kgx6lwjFtpZRPiQlp35sF5VS/+zCf7dQ2a8\nB3Te\r\n=AWxW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEMkf34uNdiydhfW3HG0zDUmDspZSK8RJYM9m33fyvdiAiBvhsWjAu1GR4JhfEaHZFnEuZ/X0i1U6TON2NTXfrkWlg=="}],"size":3716,"noattachment":false,"key":"/raf/-/raf-3.4.1.tgz"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"cmtegner","email":"christian.tegner@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/raf_3.4.1_1541154668669_0.7129521896863182"},"_hasShrinkwrap":false,"readme":"# raf\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\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## Getting started\n\n### CommonJS (Node, Browserify, Webpack, etc.)\n\nInstall `raf` from npm:\n\n```bash\nnpm install --save raf\n```\n\nRequire it like you would any other module:\n\n```js\nconst raf = require('raf')\n```\n\n### AMD (require.js, etc)\n\nDownload the UMD-bundle from [wzrd.in](https://wzrd.in/standalone/raf@latest) (remember to include the current version number in the filename).\n\nAdd it to your AMD module loader config and require it like you would any other module:\n\n```html\ndefine(['raf'], raf => {...})\n```\n\n### `<script>`\n\nDownload the UMD-bundle from [wzrd.in](https://wzrd.in/standalone/raf@latest) (remember to include the current version number in the filename).\n\nThen include it via a script tag:\n\n```html\n<script src=\"raf-x.x.x.js\"></script>\n```\n\nThe API will be available on `window.raf`.\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### 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### raf.polyfill([object])\n\nShorthand to polyfill `window.requestAnimationFrame` and `window.cancelAnimationFrame` if necessary (Polyfills `global` in node).\n\nAlternatively you can require `raf/polyfill` which will act the same as `require('raf').polyfill()`.\n\nIf you provide `object` the polyfills are attached to that given object, instead of the inferred global.\nUseful if you have an instance of a fake `window` object, and want to add `raf` and `caf` to it.\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","publish_time":1541154668808,"_cnpm_publish_time":1541154668808,"dist-tags":{"latest":"3.4.1"}}