sindresorhus / ensure-error
Ensures a value is a valid error by making it one if not
☆78Updated 2 years ago
Alternatives and similar repositories for ensure-error:
Users that are interested in ensure-error are comparing it to the libraries listed below
- Lazy number range generator☆82Updated last year
- Conditional promise chains☆60Updated 3 years ago
- A better `Promise.race()`☆46Updated 2 years ago
- Wait for any promise to be fulfilled☆55Updated 2 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Get the path of the parent module☆77Updated last year
- Get namespaced config from the closest package.json☆120Updated last year
- Extract the actual stack of an error☆66Updated 2 years ago
- Create a lazily evaluated value☆69Updated 3 years ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 3 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Define a lazily evaluated property on an object☆64Updated last year
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Convert an Observable to a Promise☆47Updated last year
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 3 years ago
- Make unhandled promise rejections fail hard right away instead of the default silent fail☆106Updated 2 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
- Run promise-returning & async functions a specific number of times concurrently☆39Updated 3 years ago
- Returns an array filled with the specified input☆42Updated 2 years ago
- Hook and modify stdout and stderr☆54Updated 2 years ago
- Iterate over promises serially☆50Updated 2 years ago
- Input module for Listr☆33Updated 4 years ago
- Get PID from a port☆80Updated 4 years ago
- Get the first fulfilled promise that satisfies the provided testing function☆74Updated 2 years ago
- Clean up regular expressions☆62Updated 5 months ago
- Get the first path that exists on disk of multiple paths☆58Updated last year
- Reduce a list of values using promises into a promise for a value☆68Updated last year
- A simple mock injector compatible needing no instrumentation in the libraries being tested☆32Updated 4 years ago
- Clean and beautiful options for minimist☆54Updated 2 years ago