sindresorhus / p-mutex
Async mutex lock for managing access to a shared resource
☆125Updated 8 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☆163Updated 7 months ago
- Remove circular references from objects☆94Updated last year
- Observe changes to the DOM using an async iterable — A nicer API for MutationObserver☆211Updated 8 months ago
- Utility functions to use and combine `AbortSignal` and `AbortController` with Promises☆154Updated last week
- Make a synchronous function have a timeout☆125Updated 7 months ago
- Merge multiple streams into a unified stream☆56Updated 6 months ago
- Use requestAnimationFrame as an async iterable, in any JavaScript environment☆173Updated last year
- Rotate an array by a given number of steps☆44Updated 11 months ago
- Create a multicast stream that lets multiple consumers independently read the same data☆118Updated 8 months ago
- Get a random temporary path☆32Updated last year
- Lightweight tsconfig.json parser & paths resolver☆201Updated 3 months ago
- Serialize objects to JSON with handling for circular references☆156Updated 10 months ago
- Useful utilities for working with Uint8Array (and Buffer)☆254Updated 3 months ago
- A more usable typed storage API for Web Extensions☆69Updated last month
- Check if the system is in low power mode☆64Updated 9 months ago
- Find a file or directory by walking up parent directories — Zero dependencies☆78Updated 2 months ago
- Like `require-in-the-middle`, but for ESM import☆139Updated 2 months ago
- Hot module reloading for nodejs☆102Updated 2 months ago
- noop functions to help formatters and syntax highlighters recognize embedded code☆97Updated last year
- Useful utilities for working with Fetch☆85Updated 2 months ago
- Create a transform stream using await instead of callbacks☆70Updated last year
- Encode & decode strings, bytes, and integers to Base62☆87Updated last year
- A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename☆321Updated 2 months ago
- A VSCode Plugin to display V8's optimizations inside JavaScript code☆82Updated 2 years ago
- ⚡ Extremely fast & configurable DTS emitter.☆114Updated this week
- Resolve things like Node.js — ponyfill for `import.meta.resolve`☆132Updated 11 months ago
- Convert a string to a valid JavaScript identifier☆40Updated 11 months ago
- Make a regular expression time out if it takes too long to execute☆211Updated 7 months ago
- Compile multiple TypeScript projects into multiple targets.☆46Updated last year
- Deduplication tool for pnpm-lock.yaml files☆68Updated 2 years ago