sindresorhus / p-mutexLinks
Async mutex lock for managing access to a shared resource
☆140Updated 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
Sorting:
- Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc☆166Updated last year
- Utility functions to use and combine `AbortSignal` and `AbortController` with Promises☆162Updated 4 months ago
- Useful utilities for working with Uint8Array (and Buffer)☆272Updated 2 months ago
- Serialize objects to JSON with handling for circular references☆162Updated last week
- Remove circular references from objects☆100Updated last year
- Create a multicast stream that lets multiple consumers independently read the same data☆187Updated 7 months ago
- Like `require-in-the-middle`, but for ESM import☆163Updated last week
- noop functions to help formatters and syntax highlighters recognize embedded code☆99Updated 2 years ago
- Make a synchronous function have a timeout☆127Updated last year
- Observe changes to the DOM using an async iterable — A nicer API for MutationObserver☆224Updated 5 months ago
- Lightweight tsconfig.json parser & paths resolver☆237Updated last week
- Check if a value is a Fetch network error☆154Updated 4 months ago
- Use requestAnimationFrame as an async iterable, in any JavaScript environment☆175Updated 2 years ago
- Make a synchronous function asynchronous by running it in a worker☆253Updated last year
- A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename☆337Updated 11 months ago
- Node CLI or module to calculate folder size☆82Updated 2 months ago
- Rotate an array by a given number of steps☆46Updated last year
- Make a regular expression time out if it takes too long to execute☆220Updated 3 months ago
- 🌌 Tiniest body parser in the universe. Built for modern Node.js☆202Updated this week
- Get a random temporary path☆35Updated 2 years ago
- ⏱️Zero CPU overhead, zero dependency, true event-loop blocking sleep ⏱️☆85Updated 5 years ago
- Merge multiple streams into a unified stream☆63Updated last year
- 🛰 JSON parse & stringify with support for cyclic objects, functions, dates, regex, infinity, undefined, null, NaN, Classes, Instances☆176Updated 9 months ago
- Create a require() function from any file-system. Great for in-memory fs testing!☆16Updated 4 months ago
- Useful utilities for working with Fetch☆97Updated 3 months ago
- Convert object keys from camel case☆58Updated last year
- Dependency-free RFC 3986 URI toolbox☆102Updated 2 months ago
- A tiny (414B) and fast utility to convert milliseconds to and from strings.☆246Updated 2 years ago
- A utility to build and bisect any version of TypeScript☆91Updated last week
- Resolve things like Node.js — ponyfill for `import.meta.resolve`☆142Updated 5 months ago