sindresorhus / p-mutex
Async mutex lock for managing access to a shared resource
☆116Updated last month
Related projects: ⓘ
- Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc☆154Updated last week
- Remove circular references from objects☆93Updated 6 months ago
- Create a multicast stream that lets multiple consumers independently read the same data☆104Updated 3 weeks ago
- Utility functions to use and combine `AbortSignal` and `AbortController` with Promises☆138Updated 2 months ago
- Observe changes to the DOM using an async iterable — A nicer API for MutationObserver☆205Updated last month
- Tiny process execution for humans — a better child_process☆122Updated this week
- Serialize objects to JSON with handling for circular references☆149Updated 2 months ago
- Make a synchronous function have a timeout☆123Updated last week
- Get a random temporary path☆31Updated 10 months ago
- Merge multiple streams into a unified stream☆52Updated 4 months ago
- Lightweight tsconfig.json parser & paths resolver☆182Updated last week
- Use requestAnimationFrame as an async iterable, in any JavaScript environment☆169Updated 8 months ago
- Tiny terminal spinner☆148Updated 3 weeks ago
- Check if a value is a Fetch network error☆122Updated 5 months ago
- 📟 A tiny, higher level interface around child_process☆109Updated 3 weeks ago
- Useful utilities for working with Fetch☆69Updated last month
- Check if the system is in low power mode☆54Updated last month
- Fast and friendly Node.js devtools☆74Updated this week
- Check if a directory is empty☆23Updated last month
- Encode & decode strings, bytes, and integers to Base62☆84Updated 4 months ago
- Useful utilities for working with Uint8Array (and Buffer)☆212Updated 2 months ago
- A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename☆310Updated 7 months ago
- Rotate an array by a given number of steps☆28Updated 3 months ago
- A more usable typed storage API for Web Extensions☆61Updated 8 months ago
- 🌈 a small library to print colourful messages☆37Updated 2 months ago
- Merges the enumerable properties of two or more objects deeply. Fastest implementation of deepmerge☆74Updated last month
- Promisify server.listen for your HTTP/HTTPS/TCP server.☆46Updated last year
- A simple Node.js task runner☆115Updated this week
- Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️☆55Updated last month
- TypeScript to C++ compiler.☆97Updated last week