sindresorhus / p-mutex
Async mutex lock for managing access to a shared resource
☆124Updated 7 months ago
Alternatives and similar repositories for p-mutex:
Users that are interested in p-mutex are comparing it to the libraries listed below
- Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc☆162Updated 6 months ago
- Remove circular references from objects☆94Updated last year
- Observe changes to the DOM using an async iterable — A nicer API for MutationObserver☆209Updated 7 months ago
- Merge multiple streams into a unified stream☆56Updated 4 months ago
- Serialize objects to JSON with handling for circular references☆154Updated 8 months ago
- Utility functions to use and combine `AbortSignal` and `AbortController` with Promises☆146Updated 4 months ago
- Encode & decode strings, bytes, and integers to Base62☆88Updated 10 months ago
- A more usable typed storage API for Web Extensions☆69Updated this week
- Use requestAnimationFrame as an async iterable, in any JavaScript environment☆173Updated last year
- Make a synchronous function have a timeout☆125Updated 6 months ago
- Get a random temporary path☆32Updated last year
- Create a multicast stream that lets multiple consumers independently read the same data☆118Updated 6 months ago
- Lightweight tsconfig.json parser & paths resolver☆202Updated 2 months ago
- Convert object keys from camel case☆54Updated 9 months ago
- Compile multiple TypeScript projects into multiple targets.☆46Updated last year
- Like `require-in-the-middle`, but for ESM import☆135Updated 3 weeks ago
- Rotate an array by a given number of steps☆29Updated 9 months ago
- Find a file or directory by walking up parent directories — Zero dependencies☆78Updated 3 weeks ago
- 🌈 a small library to print colourful messages☆54Updated 2 months ago
- Promisify server.listen for your HTTP/HTTPS/TCP server.☆49Updated last month
- noop functions to help formatters and syntax highlighters recognize embedded code☆98Updated last year
- ⏱️Zero CPU overhead, zero dependency, true event-loop blocking sleep ⏱️☆81Updated 5 years ago
- ☆39Updated 8 months ago
- ⚡ Extremely fast & configurable DTS emitter.☆112Updated this week
- ANSI escape codes for some terminal swag.☆73Updated 2 years ago
- Convert a string to a valid JavaScript identifier☆39Updated 9 months ago
- Useful utilities for working with Uint8Array (and Buffer)☆251Updated last month
- Check if the system is in low power mode☆63Updated 7 months ago
- Simple API to create test fixtures on disk☆50Updated last month
- A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename☆316Updated last month