{"name":"set-immediate-shim","version":"3.0.0","description":"Simple setImmediate shim","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/set-immediate-shim.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava"},"keywords":["setimmediate","immediate","settimeout","timeout","shim","polyfill","ponyfill"],"devDependencies":{"ava":"^6.1.2","xo":"^0.58.0"},"gitHead":"377bbef6b4df28e9766d019d7707d6cc43083a7e","bugs":{"url":"https://github.com/sindresorhus/set-immediate-shim/issues"},"homepage":"https://github.com/sindresorhus/set-immediate-shim#readme","_id":"set-immediate-shim@3.0.0","_nodeVersion":"18.19.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-X4vkRp6bmUG89tVQg+ns+gz22EZT6NfUSWWL+AP4Vy1MQ0NpCNToDc6XnL+oIv7meqNjbw8ewH4zSLcRhjlAuA==","shasum":"ca868b7c86c01154a56f2c074ac783ee7b9e14eb","tarball":"http://registry-npm.ywwl.com/set-immediate-shim/download/set-immediate-shim-3.0.0.tgz","fileCount":4,"unpackedSize":2675,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBUpdPsg7fr7kL6Kz25VBN7QRtTsscP6WnBv2f/rSzaoAiB34r6OWWoIThZAvorZ7hywVJqes4SuOW/P0Aps/XrMFg=="}],"size":1559,"noattachment":false,"key":"/set-immediate-shim/-/set-immediate-shim-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-immediate-shim_3.0.0_1710219898130_0.27766618525501485"},"_hasShrinkwrap":false,"readme":"# set-immediate-shim\n\n> Simple [`setImmediate`](https://developer.mozilla.org/en-US/docs/Web/API/Window/setImmediate) [ponyfill](https://ponyfill.com)\n\nNote: This shim is [quite inefficient](https://github.com/sindresorhus/set-immediate-shim/issues/4).\n\n## Install\n\n```sh\nnpm install set-immediate-shim\n```\n\n## Usage\n\n```js\nimport setImmediateShim from 'set-immediate-shim';\n\nsetImmediateShim(() => {\n\tconsole.log('2');\n});\n\nconsole.log('1');\n\n//=> 1\n//=> 2\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","publish_time":1710219898287,"_cnpm_publish_time":1710219898287,"dist-tags":{"latest":"4.0.0"}}