UNPKG

timeout-raf

Version:

Bare-bones animation-friendly cancelable timeouts via requestAnimationFrame

61 lines (60 loc) 1.71 kB
{ "name": "timeout-raf", "description": "Bare-bones animation-friendly cancelable timeouts via requestAnimationFrame", "author": "Tyler Peterson <tylerjpeterson@gmail.com>", "version": "1.1.4", "main": "./index.js", "scripts": { "coverage": "mkdir -p coverage && browserify test/spec/test.js -p tape-istanbul/plugin | tape-run | tape-istanbul --output coverage/coverage.json && npm run report", "report": "istanbul report --root coverage lcov && open coverage/lcov-report/index.html", "demo": "mkdir -p tmp/ && browserify test/examples/js/demo.js -o tmp/demo.js", "test": "browserify test/spec/test.js | browser-run | tap-spec", "docs": "jsdoc index.js -p -d docs/", "lint": "xo ./index.js || true && xo ./test/spec/test.js || true" }, "dependencies": {}, "devDependencies": { "browser-run": "^4.0.2", "browserify": "^14.3.0", "browserify-istanbul": "^2.0.0", "istanbul": "^0.4.5", "jsdoc": "^3.4.3", "tap-spec": "^4.1.1", "tape": "^4.8.0", "tape-istanbul": "^1.1.1", "tape-run": "^3.0.0", "xo": "latest" }, "bugs": { "url": "https://github.com/tylerjpeterson/timeout-raf/issues" }, "repository": { "type": "git", "url": "https://github.com/tylerjpeterson/timeout-raf" }, "homepage": "https://github.com/tylerjpeterson/timeout-raf", "contributors": [ "" ], "xo": { "globals": [ "requestAnimationFrame", "cancelAnimationFrame", "document", "module", "require", "window" ] }, "keywords": [ "requestAnimationFrame", "timeout", "raf", "setTimeout", "clearTimeout" ], "engines": { "node": ">=0.10.3" }, "license": "MIT" }