sindresorhus / ensure-error
Ensures a value is a valid error by making it one if not
☆77Updated 3 years ago
Alternatives and similar repositories for ensure-error
Users that are interested in ensure-error are comparing it to the libraries listed below
Sorting:
- Lazy number range generator☆81Updated last year
- Conditional promise chains☆60Updated 4 years ago
- Create a lazily evaluated value☆69Updated 4 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- A better `Promise.race()`☆46Updated 2 years ago
- Define a lazily evaluated property on an object☆65Updated 2 years ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Clean and beautiful options for minimist☆53Updated 2 years ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 4 years ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Get the path of the caller module☆64Updated 3 years ago
- Get PID from a port☆79Updated 4 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 4 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Input module for Listr☆33Updated 5 years ago
- Tests whether one path is inside another path☆41Updated 5 years ago
- Get namespaced config from the closest package.json☆121Updated last year
- Hook and modify stdout and stderr☆54Updated 2 years ago
- Iterate over promises serially☆50Updated 2 years ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 4 years ago
- Take a list of glob patterns and return an array of file locations, respecting `.gitignore` and allowing for ignore patterns via `packag…☆40Updated last year
- Clean up regular expressions☆62Updated 9 months ago
- Make unhandled promise rejections fail hard right away instead of the default silent fail☆106Updated 2 years ago
- Get the path of the parent module☆77Updated last year
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Check if a project is using Yarn☆98Updated 2 years ago
- Extract the actual stack of an error☆66Updated 2 years ago
- Reduce a list of values using promises into a promise for a value☆70Updated 2 years ago
- Rename a function☆46Updated last year