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
- Lazy number range generator☆82Updated 10 months ago
- Conditional promise chains☆60Updated 3 years ago
- Define a lazily evaluated property on an object☆63Updated last year
- Get namespaced config from the closest package.json☆120Updated last year
- Exit the process when the `esc` key is pressed☆57Updated 11 months ago
- Iterate over promises serially☆50Updated 2 years ago
- Wait for any promise to be fulfilled☆55Updated 2 years ago
- Import a module like with `require()` but from a given path☆86Updated 2 years ago
- Get the path of the parent module☆77Updated last year
- A better `Promise.race()`☆46Updated last year
- Run promise-returning & async functions repeatedly until you end it☆45Updated 3 years ago
- Extract the actual stack of an error☆67Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Reduce a list of values using promises into a promise for a value☆68Updated last year
- Create a lazily evaluated value☆69Updated 3 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 3 years ago
- Get PID from a port☆80Updated 3 years ago
- Get the first fulfilled promise that satisfies the provided testing function☆74Updated 2 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Get the path of the caller module☆64Updated 3 years ago
- Clean and beautiful options for minimist☆54Updated 2 years ago
- Find multiple RegExp matches in a string☆93Updated 2 years ago
- Hook and modify stdout and stderr☆54Updated 2 years ago
- Returns an array filled with the specified input☆43Updated 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
- Measure the time a promise takes to resolve☆70Updated last year
- Convert an Observable to a Promise☆47Updated last year
- Filter object keys and values into a new object☆100Updated 5 months ago
- Map over promises serially☆47Updated 3 years ago