UNPKG

motion

Version:

motion - moving development forward

108 lines (107 loc) 3.97 kB
{ "_args": [ [ "timers-browserify@https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "timers-browserify@>=1.0.1 <2.0.0", "_id": "timers-browserify@1.4.2", "_inCache": true, "_location": "/timers-browserify", "_phantomChildren": {}, "_requested": { "name": "timers-browserify", "raw": "timers-browserify@https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", "rawSpec": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", "scope": null, "spec": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", "type": "remote" }, "_requiredBy": [ "/node-libs-browser" ], "_resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", "_shasum": "c9c58b575be8407375cb5e2462dacee74359f41d", "_shrinkwrap": null, "_spec": "timers-browserify@https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", "_where": "/Users/nw/flint/packages/flint", "author": { "email": "jryans@gmail.com", "name": "J. Ryan Stinnett", "url": "http://convolv.es/" }, "bugs": { "url": "https://github.com/jryans/timers-browserify/issues" }, "contributors": [ { "name": "Guy Bedford", "email": "guybedford@gmail.com" }, { "name": "Ionut-Cristian Florescu", "email": "ionut.florescu@gmail.com" }, { "name": "James Halliday", "email": "mail@substack.net" }, { "name": "Jan Schär", "email": "jscissr@gmail.com" }, { "name": "Johannes Ewald", "email": "johannes.ewald@peerigon.com" }, { "name": "Jonathan Prins", "email": "jon@blip.tv" }, { "name": "Matt Esch", "email": "matt@mattesch.info" } ], "dependencies": { "process": "~0.11.0" }, "description": "timers module for browserify", "devDependencies": { "browserify": "~1.10.16", "connect": "~2.3.0" }, "engines": { "node": ">=0.6.0" }, "homepage": "https://github.com/jryans/timers-browserify", "jspm": { "map": { "./main.js": { "node": "@node/timers" } } }, "keywords": [ "browser", "browserify", "timers" ], "licenses": [ { "type": "MIT", "url": "https://github.com/jryans/timers-browserify/blob/master/LICENSE.md" } ], "main": "main.js", "name": "timers-browserify", "optionalDependencies": {}, "readme": "# Overview\n\nAdds support for the `timers` module to browserify.\n\n## Wait, isn't it already supported in the browser?\n\nThe public methods of the `timers` module are:\n\n* `setTimeout(callback, delay, [arg], [...])`\n* `clearTimeout(timeoutId)`\n* `setInterval(callback, delay, [arg], [...])`\n* `clearInterval(intervalId)`\n\nand indeed, browsers support these already.\n\n## So, why does this exist?\n\nThe `timers` module also includes some private methods used in other built-in\nNode.js modules:\n\n* `enroll(item, delay)`\n* `unenroll(item)`\n* `active(item)`\n\nThese are used to efficiently support a large quantity of timers with the same\ntimeouts by creating only a few timers under the covers.\n\nNode.js also offers the `immediate` APIs, which aren't yet available cross-browser, so we polyfill those:\n\n* `setImmediate(callback, [arg], [...])`\n* `clearImmediate(immediateId)`\n\n## I need lots of timers and want to use linked list timers as Node.js does.\n\nLinked lists are efficient when you have thousands (millions?) of timers with the same delay.\nTake a look at [timers-browserify-full](https://www.npmjs.com/package/timers-browserify-full) in this case.\n\n# License\n\n[MIT](http://jryans.mit-license.org/)\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/jryans/timers-browserify.git" }, "version": "1.4.2" }