{ "_args": [ [ { "raw": "immediate@^3.2.2", "scope": null, "escapedName": "immediate", "name": "immediate", "rawSpec": "^3.2.2", "spec": ">=3.2.2 <4.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/websql" ] ], "_from": "immediate@>=3.2.2 <4.0.0", "_id": "immediate@3.2.3", "_inCache": true, "_location": "/immediate", "_nodeVersion": "5.12.0", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/immediate-3.2.3.tgz_1471458786902_0.25323316687718034" }, "_npmUser": { "name": "cwmma", "email": "calvin.metcalf@gmail.com" }, "_npmVersion": "3.8.6", "_phantomChildren": {}, "_requested": { "raw": "immediate@^3.2.2", "scope": null, "escapedName": "immediate", "name": "immediate", "rawSpec": "^3.2.2", "spec": ">=3.2.2 <4.0.0", "type": "range" }, "_requiredBy": [ "/websql" ], "_resolved": "https://registry.npmjs.org/immediate/-/immediate-3.2.3.tgz", "_shasum": "d140fa8f614659bd6541233097ddaac25cdd991c", "_shrinkwrap": null, "_spec": "immediate@^3.2.2", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/websql", "browser": { "./nextTick": false }, "bugs": { "url": "https://github.com/calvinmetcalf/immediate/issues" }, "contributors": [ { "name": "Domenic Denicola", "email": "domenic@domenicdenicola.com", "url": "http://domenicdenicola.com" }, { "name": "Donavon West", "email": "github@donavon.com", "url": "http://donavon.com" }, { "name": "Yaffle" }, { "name": "Calvin Metcalf", "email": "calvin.metcalf@gmail.com" } ], "dependencies": {}, "description": "A cross browser microtask library", "devDependencies": { "browserify": "^10.0.0", "derequire": "^2.0.0", "jshint": "^2.5.1", "tap-spec": "^3.0.0", "tape": "^4.0.0", "uglify-js": "^2.4.13" }, "directories": {}, "dist": { "shasum": "d140fa8f614659bd6541233097ddaac25cdd991c", "tarball": "https://registry.npmjs.org/immediate/-/immediate-3.2.3.tgz" }, "gitHead": "57ed41d729fd1182f88a1221185631f142d2abf5", "homepage": "https://github.com/calvinmetcalf/immediate#readme", "license": "MIT", "main": "lib/index.js", "maintainers": [ { "name": "cwmma", "email": "calvin.metcalf@gmail.com" } ], "name": "immediate", "optionalDependencies": {}, "readme": "# immediate [![Build Status](https://travis-ci.org/calvinmetcalf/immediate.svg?branch=master)](https://travis-ci.org/calvinmetcalf/immediate)\n\n[![testling status](https://ci.testling.com/calvinmetcalf/immediate.png)](https://ci.testling.com/calvinmetcalf/immediate)\n\n```\nnpm install immediate --save\n```\n\nthen\n\n```js\nvar immediate = require(\"immediate\");\n\nimmediate(function () {\n // this will run soon\n});\n\nimmediate(function (arg1, arg2) {\n // get your args like in iojs\n}, thing1, thing2);\n```\n\n## Introduction\n\n**immediate** is a microtask library, decended from [NobleJS's setImmediate](https://github.com/NobleJS/setImmediate), but including ideas from [Cujo's When](https://github.com/cujojs/when) and [RSVP][RSVP].\n\nimmediate takes the tricks from setImmedate and RSVP and combines them with the schedualer inspired (vaugly) by whens.\n\nNote versions 2.6.5 and earlier were strictly speaking a 'macrotask' library not a microtask one, [see this for the difference](https://github.com/YuzuJS/setImmediate#macrotasks-and-microtasks), if you need a macrotask library, [I got you covered](https://github.com/calvinmetcalf/macrotask).\n\nSeveral new features were added in versions 3.1.0 and 3.2.0 to maintain parity with\nprocess.nextTick, but the 3.0.x series is still being kept up to date if you just need\nthe small barebones version\n\n## The Tricks\n\n### `process.nextTick`\n\nNote that we check for *actual* Node.js environments, not emulated ones like those produced by browserify or similar.\n\n### `MutationObserver`\n\nThis is what [RSVP][RSVP] uses, it's very fast, details on [MDN](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver).\n\n\n### `MessageChannel`\n\nUnfortunately, `postMessage` has completely different semantics inside web workers, and so cannot be used there. So we\nturn to [`MessageChannel`][MessageChannel], which has worse browser support, but does work inside a web worker.\n\n### `