sindresorhus / p-mutexLinks
Async mutex lock for managing access to a shared resource
☆139Updated 6 months ago
Alternatives and similar repositories for p-mutex
Users that are interested in p-mutex are comparing it to the libraries listed below
Sorting:
- Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc☆165Updated last year
- Useful utilities for working with Uint8Array (and Buffer)☆272Updated last month
- Serialize objects to JSON with handling for circular references☆162Updated 7 months ago
- Utility functions to use and combine `AbortSignal` and `AbortController` with Promises☆160Updated 2 months ago
- Remove circular references from objects☆100Updated last year
- Create a multicast stream that lets multiple consumers independently read the same data☆186Updated 6 months ago
- Like `require-in-the-middle`, but for ESM import☆162Updated 3 weeks ago
- Make a synchronous function asynchronous by running it in a worker☆253Updated last year
- Observe changes to the DOM using an async iterable — A nicer API for MutationObserver☆223Updated 4 months ago
- Lightweight tsconfig.json parser & paths resolver☆232Updated last week
- Make a synchronous function have a timeout☆126Updated last year
- noop functions to help formatters and syntax highlighters recognize embedded code☆99Updated 2 years ago
- Check if a value is a Fetch network error☆154Updated 3 months ago
- A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename☆336Updated 10 months ago
- Node CLI or module to calculate folder size☆82Updated last month
- Dependency-free RFC 3986 URI toolbox☆102Updated last month
- Make a regular expression time out if it takes too long to execute☆220Updated 2 months ago
- Resolve things like Node.js — ponyfill for `import.meta.resolve`☆140Updated 4 months ago
- 🌌 Tiniest body parser in the universe. Built for modern Node.js☆201Updated last month
- Fastest RFC4122 UUIDs generator for Node.js☆99Updated last week
- Use @swc-node/register instead☆86Updated 3 years ago
- Use requestAnimationFrame as an async iterable, in any JavaScript environment☆174Updated 2 years ago
- Useful utilities for working with Fetch☆96Updated 2 months ago
- ⏱️Zero CPU overhead, zero dependency, true event-loop blocking sleep ⏱️☆85Updated 5 years ago
- ⚡ Extremely fast, smart & configurable DTS emitter.☆132Updated this week
- Tiny terminal spinner☆280Updated 3 months ago
- Run some code when the process exits☆299Updated last month
- 🛰 JSON parse & stringify with support for cyclic objects, functions, dates, regex, infinity, undefined, null, NaN, Classes, Instances☆175Updated 8 months ago
- Read and write files atomically and reliably.☆171Updated 2 months ago
- Perform async work synchronously in Node.js/Bun using `worker_threads` with first-class TypeScript and Yarn P'n'P support.☆260Updated 5 months ago