setimmediate
npmv1.0.5A shim for the setImmediate efficient script yielding API
Not recommended for new projects
No — setimmediate should not be adopted for new projects. Last published 3650 days ago.
- AAdoption: grade A, Excellent.
50.7M downloads per week and 2 known dependents.
- FMaintenance: grade F, Failing.
Last published 3650 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding setimmediate to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the setimmediate README.
require("setimmediate"); // (somewhere early in your app; it attaches to the global scope.)Dependencies
Declared by setimmediate v1.0.5. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (5)
Used by
Popular packages that depend on setimmediate.
Relationship graph
Dependencies (left) and dependents (right) of setimmediate.
Frequently installed together
An AST-based pattern checker for JavaScript.
zlib port to javascript - fast, modularized, with browser support
Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST
Universal WHATWG Fetch API for Node, Browsers and React Native
This package exports a few of the CSS variables that we use in Facebook projects. This is not the full list we have internally but focused on making available the minimum set needed by our open source projects.
A high-level API to automate web browsers
A basic but performant promise implementation
Bare bones Promises/A+ implementation
Immutable Data Collections
Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment
Create a stream that emits events from multiple other streams
Delightful JavaScript Testing.
Release history
No releases in the last two years, typically about 330 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.5latest | 10 years ago | — | MIT |
| 1.0.4 | 11 years ago | — | MIT |
| 1.0.3 | 11 years ago | — | MIT |
| 1.0.2 | 12 years ago | — | MIT |
| 1.0.1 | 13 years ago | — | MIT |
| 1.0.0 | 13 years ago | — | MIT |
Overview
setimmediate is an npm package that a shim for the setImmediate efficient script yielding API. It is extremely widely used, with about 50.7M downloads per week and 2 known dependents in the graph. The latest version is 1.0.5, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a shim for the setImmediate efficient script yielding API and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (50.7M weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use setimmediate?
No — setimmediate should not be adopted for new projects. Last published 3650 days ago.
How do I install setimmediate?
Run `npm install setimmediate` to add setimmediate to your npm project.
What license is setimmediate released under?
setimmediate is distributed under the MIT license.
How popular is setimmediate?
setimmediate has approximately 50,668,839 downloads per week and 2 known dependent packages.
Is setimmediate still maintained?
The most recent release of setimmediate (v1.0.5) was published 10 years ago.
Does setimmediate run install scripts?
No. setimmediate does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.