sindresorhus / ensure-error
Ensures a value is a valid error by making it one if not
☆78Updated 2 years ago
Related projects ⓘ
Alternatives and complementary repositories for ensure-error
- Conditional promise chains☆60Updated 3 years ago
- Lazy number range generator☆82Updated 10 months ago
- Define a lazily evaluated property on an object☆63Updated last year
- Wait for any promise to be fulfilled☆55Updated 2 years ago
- A better `Promise.race()`☆46Updated last year
- Import a module like with `require()` but from a given path☆86Updated 2 years ago
- Exit the process when the `esc` key is pressed☆57Updated 11 months ago
- Iterate over promises serially☆50Updated 2 years ago
- Get namespaced config from the closest package.json☆120Updated last year
- Create a lazily evaluated value☆69Updated 3 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 3 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Get PID from a port☆80Updated 3 years ago
- Input module for Listr☆33Updated 4 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Extract the actual stack of an error☆67Updated 2 years ago
- Make unhandled promise rejections fail hard right away instead of the default silent fail☆107Updated 2 years ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 3 years ago
- Reduce a list of values using promises into a promise for a value☆68Updated last year
- Returns an array filled with the specified input☆43Updated 2 years ago
- Check if a project is using Yarn☆100Updated 2 years ago
- Map over promises serially☆47Updated 3 years ago
- Rename a function☆45Updated last year
- Make a promise always fulfill with its actual fulfillment value or rejection reason☆53Updated last year
- Filter object keys and values into a new object☆100Updated 5 months ago
- Clean up regular expressions☆61Updated 3 months ago
- Get the path of the caller module☆64Updated 3 years ago
- Hook and modify stdout and stderr☆54Updated 2 years ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 3 years ago