{"_id":"set-immediate-shim","_rev":"38050","name":"set-immediate-shim","description":"Simple setImmediate shim","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2022-10-18T09:23:00.000Z","created":"2014-12-29T09:41:39.091Z","2.0.0":"2018-03-25T15:48:50.775Z","1.0.1":"2015-03-12T07:46:00.857Z","1.0.0":"2014-12-29T09:41:39.091Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/set-immediate-shim.git"},"versions":{"2.0.0":{"name":"set-immediate-shim","version":"2.0.0","description":"Simple setImmediate shim","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/set-immediate-shim.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["setimmediate","immediate","settimeout","timeout","shim","polyfill","ponyfill"],"devDependencies":{"ava":"*","import-fresh":"^2.0.0","xo":"*"},"gitHead":"4e67c0d38a2a3239c523a30776bc55186d51d365","bugs":{"url":"https://github.com/sindresorhus/set-immediate-shim/issues"},"homepage":"https://github.com/sindresorhus/set-immediate-shim#readme","_id":"set-immediate-shim@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5bf3ecf5d0d6eda9a335dbb5bfd0733f3e149d8d","size":1526,"noattachment":false,"key":"/set-immediate-shim/-/set-immediate-shim-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/set-immediate-shim/download/set-immediate-shim-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-immediate-shim_2.0.0_1521992930693_0.12283900291391592"},"_hasShrinkwrap":false,"publish_time":1521992930775,"_cnpm_publish_time":1521992930775},"1.0.1":{"name":"set-immediate-shim","version":"1.0.1","description":"Simple setImmediate shim","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/set-immediate-shim"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["setImmediate","immediate","setTimeout","timeout","shim","polyfill","ponyfill"],"devDependencies":{"ava":"0.0.4","require-uncached":"^1.0.2"},"gitHead":"4c50df7ade5a368e106fee82351ee0a378c990f7","bugs":{"url":"https://github.com/sindresorhus/set-immediate-shim/issues"},"homepage":"https://github.com/sindresorhus/set-immediate-shim","_id":"set-immediate-shim@1.0.1","_shasum":"4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61","size":821,"noattachment":false,"key":"/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/set-immediate-shim/download/set-immediate-shim-1.0.1.tgz"},"directories":{},"publish_time":1426146360857,"_cnpm_publish_time":1426146360857,"_hasShrinkwrap":false},"1.0.0":{"name":"set-immediate-shim","version":"1.0.0","description":"Simple setImmediate shim","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/set-immediate-shim"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["setImmediate","immediate","setTimeout","timeout","shim","polyfill","ponyfill"],"devDependencies":{"ava":"0.0.4","require-uncached":"^1.0.2"},"gitHead":"29ac611e181046f2cf8b61ed5d038c64733a1cbc","bugs":{"url":"https://github.com/sindresorhus/set-immediate-shim/issues"},"homepage":"https://github.com/sindresorhus/set-immediate-shim","_id":"set-immediate-shim@1.0.0","_shasum":"e23b45a33244f6f2dcd90359bc38bdbf048de152","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"e23b45a33244f6f2dcd90359bc38bdbf048de152","size":1473,"noattachment":false,"key":"/set-immediate-shim/-/set-immediate-shim-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/set-immediate-shim/download/set-immediate-shim-1.0.0.tgz"},"directories":{},"publish_time":1419846099091,"_cnpm_publish_time":1419846099091,"_hasShrinkwrap":false}},"readme":"# set-immediate-shim [![Build Status](https://travis-ci.org/sindresorhus/set-immediate-shim.svg?branch=master)](https://travis-ci.org/sindresorhus/set-immediate-shim)\n\n> Simple [`setImmediate`](https://developer.mozilla.org/en-US/docs/Web/API/Window/setImmediate) [ponyfill](https://ponyfill.com)\n\n\n## Install\n\n```\n$ npm install set-immediate-shim\n```\n\n\n## Usage\n\n```js\nconst setImmediateShim = require('set-immediate-shim');\n\nsetImmediateShim(() => {\n\tconsole.log('2');\n});\n\nconsole.log('1');\n\n//=> 1\n//=> 2\n```\n\n\n## Related\n\n- [p-immediate](https://github.com/sindresorhus/p-immediate) - Returns a promise resolved in the next event loop - think `setImmediate()`\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","_attachments":{},"homepage":"https://github.com/sindresorhus/set-immediate-shim#readme","bugs":{"url":"https://github.com/sindresorhus/set-immediate-shim/issues"},"license":"MIT"}