sindresorhus / environmentLinks
Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc
☆164Updated 9 months ago
Alternatives and similar repositories for environment
Users that are interested in environment are comparing it to the libraries listed below
Sorting:
- Observe changes to the DOM using an async iterable — A nicer API for MutationObserver☆215Updated 10 months ago
- Remove circular references from objects☆94Updated last year
- Async mutex lock for managing access to a shared resource☆126Updated this week
- Create a multicast stream that lets multiple consumers independently read the same data☆121Updated this week
- Encode & decode strings, bytes, and integers to Base62☆87Updated last year
- Tiny terminal spinner☆246Updated last month
- A more usable typed storage API for Web Extensions☆69Updated 3 months ago
- Make a regular expression time out if it takes too long to execute☆215Updated 9 months ago
- Serialize objects to JSON with handling for circular references☆157Updated last month
- Useful utilities for working with Uint8Array (and Buffer)☆260Updated 5 months ago
- Check if the system is in low power mode☆65Updated 11 months ago
- Useful utilities for working with Fetch☆87Updated 5 months ago
- Make a synchronous function have a timeout☆125Updated 9 months ago
- Utility functions to use and combine `AbortSignal` and `AbortController` with Promises☆155Updated 3 weeks ago
- Rotate an array by a given number of steps☆44Updated last year
- noop functions to help formatters and syntax highlighters recognize embedded code☆96Updated last year
- Use requestAnimationFrame as an async iterable, in any JavaScript environment☆173Updated last year
- Make a synchronous function asynchronous by running it in a worker☆251Updated 9 months ago
- Measure the size of your npm package distribution☆67Updated 3 years ago
- Check if a value is a Fetch network error☆144Updated last year
- Lightweight tsconfig.json parser & paths resolver☆221Updated last month
- A lightweight, no dependency, pluggable CLI spinner library.☆56Updated 2 months ago
- Get a random temporary path☆32Updated last year
- A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename☆325Updated 4 months ago
- 🌀 The simplest and tiniest terminal spinner for Node.js☆218Updated 7 months ago
- Find a file or directory by walking up parent directories — Zero dependencies☆80Updated last month
- Check if the process is running inside a container (Docker/Podman)☆74Updated last year
- 📟 A tiny, higher level interface around child_process☆265Updated last month
- TypeScript declaration (.d.ts) bundler☆136Updated 4 months ago
- Some simple utilities for nodejs☆25Updated 7 months ago