Search results
20 packages found
Throw an error (and allow to stop flow) if an async function takes more than a set duration
Conditional promise catch handler
If X, return Y, else throw Z.
Assert a given string is a valid Github issue label name
Enforce required parameters or options in ES6.
Set of methods allowing simplify work with promises in cycle such as: forEach, map, find, filter, reduce, while, transform. Besides there are methods for comfortable work with promises or asynchronous operations - all, retry, timeout.
- promise
- promises
- performance
- async
- await
- deferred
- deferreds
- future
- flow control
- fluent interface
- promise methods
- foreach
- reduce
- filter
- View more
Throw if environment variable cannot be taken.
Simple date parse util, throws error or returns null if date is invalid
An assertion method to check if a sync or async function throws and assert on error properties.
Util to throw error if truthy is given
Throws something if it’s an Error; otherwise returns it.
Ensure environment variable exists. If not, throw to fail early.
Ensure environment variable exists and convert to a number. If not, throw to fail early.
Throw TypeError if not a value is array-like. The undefined value always evaluates to true.
Throw if a document cannot be found
An accumulator for only errors that tries to interrupt and throw an error if the storage is not empty.
Function that returns a boolean indicating whether an exception was thrown or not
Replace in string pattern by variables. Throw error if variables is not string or number.
Get one or multiple environment variable or throw an error if undefined.