sindresorhus / p-ifLinks
Conditional promise chains
☆62Updated 4 years ago
Alternatives and similar repositories for p-if
Users that are interested in p-if are comparing it to the libraries listed below
Sorting:
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 4 years ago
- Conditional promise catch handler☆38Updated 4 years ago
- Make a promise always fulfill with its actual fulfillment value or rejection reason☆54Updated 2 weeks ago
- Ensures a value is a valid error by making it one if not☆78Updated last week
- Lazy number range generator☆81Updated last year
- Run promise-returning & async functions a specific number of times concurrently☆39Updated 3 years ago
- Get the path of the parent module☆78Updated last week
- Mimic a Node.js HTTP response stream☆59Updated last year
- Get metadata on the default editor or a specific editor☆53Updated 2 weeks ago
- Create a lazily evaluated value☆69Updated 4 years ago
- Reduce a list of values using promises into a promise for a value☆70Updated 2 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- A better `Promise.race()`☆46Updated 2 years ago
- While a condition returns true, calls a function repeatedly, and then resolves the promise☆55Updated 11 months ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 4 years ago
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Get namespaced config from the closest package.json☆120Updated last year
- Input module for Listr☆33Updated 5 years ago
- Wait for any promise to be fulfilled☆54Updated 3 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 4 years ago
- Define a lazily evaluated property on an object☆65Updated 2 years ago
- Get CI environment variables for parallelizing builds☆38Updated 5 years ago
- Run promise-returning & async functions in series☆67Updated 4 years ago
- Check when the DOM has loaded like `DOMContentLoaded`☆110Updated last year
- Get the shortest leading whitespace from lines in a string☆19Updated 5 years ago
- Log the value/error of a promise☆26Updated 4 years ago
- Find multiple RegExp matches in a string☆90Updated 3 years ago
- Run promise-returning & async functions in series, each passing its result to the next☆76Updated 2 weeks ago
- Get the arguments of a function, arrow function, generator function, async function☆52Updated last year