sindresorhus / sleep-synchronouslyView external linksLinks
Block the main thread for a given amount of time
☆128Jan 19, 2026Updated 3 weeks ago
Alternatives and similar repositories for sleep-synchronously
Users that are interested in sleep-synchronously are comparing it to the libraries listed below
Sorting:
- Make an asynchronous function synchronous☆326Feb 3, 2026Updated last week
- Wait for any promise to be fulfilled☆56Jul 9, 2022Updated 3 years ago
- Inspect the state of a promise☆133Sep 23, 2025Updated 4 months ago
- Simple wildcard matching☆34Sep 15, 2025Updated 4 months ago
- Check whether a file can be executed☆46Feb 1, 2026Updated last week
- Check if stdout or stderr is interactive☆119Nov 6, 2023Updated 2 years ago
- Lax `url.format()` that formats a hostname and port into IPv6-compatible socket form of `hostname:port`☆14Apr 9, 2021Updated 4 years ago
- Cooperative get-port implementation☆10Jul 10, 2022Updated 3 years ago
- Log the value/error of a promise☆29Apr 9, 2021Updated 4 years ago
- Detect whether the terminal supports Unicode☆87Sep 9, 2024Updated last year
- Check if a file path is an archive file☆16Apr 30, 2024Updated last year
- Prevent `require` from searching upwards for required modules☆95Jan 23, 2021Updated 5 years ago
- Make a synchronous function asynchronous by running it in a worker☆253Sep 21, 2024Updated last year
- Record voice messages inside Slack☆44Aug 23, 2020Updated 5 years ago
- Check if your code is running as an npm script☆56Sep 18, 2021Updated 4 years ago
- Assert a Map has a given key and return the value for it.☆12Nov 20, 2022Updated 3 years ago
- Create a readable Node.js stream that produces no data (or optionally blank data) or a writable stream that discards data☆53May 27, 2023Updated 2 years ago
- Get user info from a GitHub username☆24Oct 14, 2021Updated 4 years ago
- Get metadata on the default editor or a specific editor☆55Sep 10, 2025Updated 5 months ago
- Run promise-returning & async functions a specific number of times concurrently☆41Oct 4, 2021Updated 4 years ago
- Make a promise always fulfill with its actual fulfillment value or rejection reason☆56Sep 11, 2025Updated 5 months ago
- Show time elapsed while recording☆36Dec 6, 2022Updated 3 years ago
- Alphabetically sort an array of strings☆40Apr 9, 2021Updated 4 years ago
- Render a gif and provide frames to draw.☆38Jan 13, 2021Updated 5 years ago
- Get the ID of the process that uses a certain port☆149Jan 12, 2026Updated last month
- Kap plugin - Share on Cloudinary☆15May 30, 2023Updated 2 years ago
- Conditional promise catch handler☆40Apr 9, 2021Updated 4 years ago
- Alfred workflow to control the Plash app☆30Nov 4, 2023Updated 2 years ago
- User-friendly pseudorandom number generator (PRNG)☆108Sep 10, 2025Updated 5 months ago
- Make a synchronous function have a timeout☆127Sep 13, 2024Updated last year
- Serialize objects to JSON with handling for circular references☆162Feb 2, 2026Updated last week
- Display images in the terminal☆275Sep 11, 2025Updated 5 months ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Sep 11, 2025Updated 5 months ago
- Try to downgrade the permissions of a process with root privileges☆17Aug 31, 2023Updated 2 years ago
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 2 years ago
- Regular expression for matching punctuation characters.☆10Jul 1, 2017Updated 8 years ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 years ago
- Ensure a function is only called once☆165Feb 2, 2026Updated last week
- Wait for a specified number of promises to be fulfilled☆39Sep 11, 2025Updated 5 months ago