sindresorhus / environment
Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc
☆161Updated 6 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☆124Updated 6 months ago
- Encode & decode strings, bytes, and integers to Base62☆87Updated 10 months ago
- Observe changes to the DOM using an async iterable — A nicer API for MutationObserver☆209Updated 6 months ago
- Remove circular references from objects☆94Updated last year
- Create a multicast stream that lets multiple consumers independently read the same data☆118Updated 6 months ago
- Check if the system is in low power mode☆63Updated 7 months ago
- Make a synchronous function have a timeout☆125Updated 6 months ago
- Tiny terminal spinner☆219Updated 2 weeks ago
- Serialize objects to JSON with handling for circular references☆154Updated 8 months ago
- Use requestAnimationFrame as an async iterable, in any JavaScript environment☆173Updated last year
- Utility functions to use and combine `AbortSignal` and `AbortController` with Promises☆146Updated 3 months ago
- A more usable typed storage API for Web Extensions☆69Updated last month
- Check if a directory is empty☆24Updated 7 months ago
- Useful utilities for working with Fetch☆80Updated last month
- Useful utilities for working with Uint8Array (and Buffer)☆251Updated last month
- Make a regular expression time out if it takes too long to execute☆210Updated 6 months ago
- Rotate an array by a given number of steps☆29Updated 9 months ago
- Get a random temporary path☆32Updated last year
- noop functions to help formatters and syntax highlighters recognize embedded code☆98Updated last year
- Tiny process execution for humans — a better child_process☆480Updated 4 months ago
- Lightweight tsconfig.json parser & paths resolver☆200Updated last month
- Find a file or directory by walking up parent directories — Zero dependencies☆78Updated 2 weeks ago
- Promisify server.listen for your HTTP/HTTPS/TCP server.☆49Updated last month
- A lightweight, no dependency, pluggable CLI spinner library.☆38Updated last week
- A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename☆316Updated 3 weeks ago
- 📟 A tiny, higher level interface around child_process☆178Updated last week
- A tiny (414B) and fast utility to convert milliseconds to and from strings.☆229Updated last year
- 🌌 Tiniest body parser in the universe. Built for modern Node.js☆195Updated 3 weeks ago
- Check if the process is running in a Continuous Integration (CI) environment☆31Updated 7 months ago
- A set of small Node.js utilities to understand your pathing needs.☆257Updated 4 months ago