sindresorhus / environment
Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc
☆163Updated 7 months ago
Alternatives and similar repositories for environment:
Users that are interested in environment are comparing it to the libraries listed below
- Async mutex lock for managing access to a shared resource☆125Updated 8 months ago
- Observe changes to the DOM using an async iterable — A nicer API for MutationObserver☆211Updated 8 months ago
- Create a multicast stream that lets multiple consumers independently read the same data☆118Updated 8 months ago
- Remove circular references from objects☆94Updated last year
- Encode & decode strings, bytes, and integers to Base62☆87Updated last year
- Check if the system is in low power mode☆64Updated 9 months ago
- Useful utilities for working with Fetch☆85Updated 2 months ago
- Utility functions to use and combine `AbortSignal` and `AbortController` with Promises☆154Updated last week
- Tiny terminal spinner☆232Updated 2 weeks ago
- Use requestAnimationFrame as an async iterable, in any JavaScript environment☆173Updated last year
- Make a synchronous function have a timeout☆125Updated 7 months ago
- Serialize objects to JSON with handling for circular references☆156Updated 10 months ago
- Useful utilities for working with Uint8Array (and Buffer)☆254Updated 3 months ago
- A more usable typed storage API for Web Extensions☆69Updated last month
- Rotate an array by a given number of steps☆44Updated 11 months ago
- Make a regular expression time out if it takes too long to execute☆211Updated 7 months ago
- Lightweight tsconfig.json parser & paths resolver☆201Updated 3 months ago
- 📟 A tiny, higher level interface around child_process☆236Updated last week
- TypeScript declaration (.d.ts) bundler☆126Updated 2 months ago
- Tiny process execution for humans — a better child_process☆493Updated last month
- noop functions to help formatters and syntax highlighters recognize embedded code☆97Updated last year
- Check if a value is a Fetch network error☆140Updated last year
- Find a file or directory by walking up parent directories — Zero dependencies☆78Updated 2 months ago
- Get a random temporary path☆32Updated last year
- Covert Oniguruma-flavor Regexp to JavaScript native RegExp.☆61Updated 5 months ago
- A collection of common interactive command line user interfaces.☆17Updated 10 months ago
- A simple Node.js task runner☆339Updated last week
- Get the stack trace of the creation of objects.☆69Updated 11 months ago
- A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename☆321Updated 2 months ago
- Check if a directory is empty☆28Updated 9 months ago