sindresorhus / hard-rejectionView external linksLinks
Make unhandled promise rejections fail hard right away instead of the default silent fail
☆107Jul 8, 2022Updated 3 years ago
Alternatives and similar repositories for hard-rejection
Users that are interested in hard-rejection are comparing it to the libraries listed below
Sorting:
- Make unhandled promise rejections fail loudly instead of the default silent fail☆282Jan 24, 2021Updated 5 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆21Oct 24, 2023Updated 2 years ago
- Get the arguments of a function, arrow function, generator function, async function☆54Oct 30, 2023Updated 2 years ago
- Check if a value is a Blob☆24Oct 27, 2023Updated 2 years ago
- Copy a file☆123Aug 13, 2025Updated 6 months ago
- Define a lazily evaluated property on an object☆67Mar 19, 2023Updated 2 years ago
- Check if an Iterable is empty☆23Sep 14, 2025Updated 5 months ago
- Get free disk space info from `df -kP`☆64Sep 13, 2025Updated 5 months ago
- Find mapcodes in a string☆26Jul 24, 2022Updated 3 years ago
- Modify the filename in a path☆17Jul 9, 2022Updated 3 years ago
- Measure the time a promise takes to resolve☆72Nov 5, 2023Updated 2 years ago
- Get the email of an npm user☆14Feb 26, 2024Updated last year
- Exit the process when the `esc` key is pressed☆58Dec 4, 2023Updated 2 years ago
- Alphabetically sort an array of strings☆40Apr 9, 2021Updated 4 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last week
- Make a directory and its parents if needed - Think `mkdir -p`☆477Sep 10, 2025Updated 5 months ago
- Check if a string is a scoped npm package name☆25Jul 9, 2022Updated 3 years ago
- Create an error from multiple errors☆249Sep 14, 2023Updated 2 years ago
- Check if a string is a valid filename☆62Aug 16, 2021Updated 4 years ago
- Truncate a string to a specific width in the terminal☆88Oct 23, 2025Updated 3 months ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Import a module like with `require()` but from a given path☆86Jul 8, 2022Updated 3 years ago
- Display an error in a GUI dialog☆22May 3, 2021Updated 4 years ago
- Bind all methods in an object to itself or a specified context☆59Apr 19, 2021Updated 4 years ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 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
- Run promise-returning & async functions in series☆71Aug 12, 2021Updated 4 years ago
- Support any Observable library and polyfill☆74Feb 2, 2026Updated last week
- Check if the character represented by a given Unicode code point is fullwidth☆51Aug 31, 2025Updated 5 months ago
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Get the path of the parent module☆79Sep 15, 2025Updated 5 months ago
- Ensures a value is a valid error by making it one if not☆86Sep 15, 2025Updated 4 months ago
- Hook and modify stdout and stderr☆57Sep 9, 2025Updated 5 months ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Move a file, directory, or symlink - Even works across devices☆205Jan 25, 2026Updated 3 weeks ago
- Check if a value is an error constructor☆14Apr 7, 2021Updated 4 years ago