{"_id":"r-a-f","_rev":"3-eec30bb4b485ab6152a194704f267ee6","name":"r-a-f","description":"simple polyfill for requestAnimationFrame for browser and node","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"r-a-f","version":"1.0.0","description":"simple polyfill for requestAnimationFrame for browser and node","main":"r-a-f.js","scripts":{"test":"node test.js"},"author":{"name":"Kyle Phillips","email":"kyle@haptic-data.com"},"repository":{"type":"git","url":"git://github.com/hapticdata/r-a-f.git"},"keywords":["requestAnimationFrame","polyfill"],"license":"MIT","devDependencies":{"tape":"^3.5.0"},"bugs":{"url":"https://github.com/hapticdata/r-a-f/issues"},"homepage":"https://github.com/hapticdata/r-a-f","_id":"r-a-f@1.0.0","dist":{"shasum":"9adb8e6daa186b510c227265360160e2f9017e5b","tarball":"https://registry.npmjs.org/r-a-f/-/r-a-f-1.0.0.tgz","integrity":"sha512-QKOKM1VGQ5HWxtS49NGi8K6qGeIXIlIIVZEwgOeCmSjcV0QTtB8DVJgbEVuHx84eUZseo+6AHLMqQW0v/Ht6Fw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCbXJzG3KZputYw7TGu+nJcvZ3z10IWHINp9/l5eylogIhALM5kCqN1cyMUkLKhdjtNwEpzbPbqyvnUjl+HVRJQmo0"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"hapticdata","email":"kyle@haptic-data.com"},"maintainers":[{"name":"hapticdata","email":"kyle@haptic-data.com"}]}},"readme":"# r-a-f\n\n\nrequestAnimationFrame for the browser and node. Based on the [polyfill by Erik Moller](http://paulirish.com/2011/requestanimationframe-for-smart-animating/). Supports AMD, Node, browserify and polyfills the `window` object in browser.\n\n```js\n\nvar rAF = require('r-a-f');\n\nrAF(function update(deltaTime){\n    //an infinite animation loop\n    rAF(update);\n});\n\n//get an id for a \nvar rAFID = rAF(callback);\n\n//cancel that request\nrAF.cancel(rAFID);\n```\n\n\n## Why this one\n\nI made another `requestAnimationFrame` polyfill because the best one I found on NPM used `requestAnimationFrame.call` and I prefer to avoid that overhead. I wanted one module that worked in AMD and Node including Browserify and called the native function directly (when available) instead of wrapping it.\n\n\n**MIT License**\n","maintainers":[{"name":"hapticdata","email":"kyle@haptic-data.com"}],"time":{"modified":"2022-06-25T08:31:53.140Z","created":"2015-08-23T23:53:56.361Z","1.0.0":"2015-08-23T23:53:56.361Z"},"homepage":"https://github.com/hapticdata/r-a-f","keywords":["requestAnimationFrame","polyfill"],"repository":{"type":"git","url":"git://github.com/hapticdata/r-a-f.git"},"author":{"name":"Kyle Phillips","email":"kyle@haptic-data.com"},"bugs":{"url":"https://github.com/hapticdata/r-a-f/issues"},"license":"MIT","readmeFilename":"README.md"}