sindresorhus / p-ifLinks
Conditional promise chains
☆63Updated 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:
- Conditional promise catch handler☆39Updated 4 years ago
- Lazy number range generator☆82Updated last year
- Create a lazily evaluated value☆69Updated 4 years ago
- Mimic a Node.js HTTP response stream☆60Updated 2 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆41Updated 4 years ago
- Ensures a value is a valid error by making it one if not☆82Updated 2 months ago
- Get the path of the parent module☆78Updated 2 months ago
- Reduce a list of values using promises into a promise for a value☆73Updated 2 years ago
- Get namespaced config from the closest package.json☆121Updated 2 years ago
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- While a condition returns true, calls a function repeatedly, and then resolves the promise☆57Updated last year
- Run promise-returning & async functions a specific number of times concurrently☆40Updated 4 years ago
- Make a promise always fulfill with its actual fulfillment value or rejection reason☆56Updated 2 months ago
- Get metadata on the default editor or a specific editor☆54Updated 2 months ago
- Define a lazily evaluated property on an object☆66Updated 2 years ago
- Iterate over promises serially☆51Updated 3 years ago
- Exit the process when the `esc` key is pressed☆57Updated last year
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- A better `Promise.race()`☆50Updated 2 years ago
- Measure the time a promise takes to resolve☆71Updated 2 years ago
- Get the first fulfilled promise that satisfies the provided testing function☆77Updated 9 months ago
- Calls a function repeatedly while a condition returns true and then resolves the promise☆37Updated last year
- Wait for a specified number of promises to be fulfilled☆38Updated 2 months ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆46Updated 4 years ago
- Run promise-returning & async functions repeatedly until you end it☆48Updated 4 years ago
- Rename a function☆47Updated 2 years ago
- Improved sorting order for directory entities☆26Updated 7 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Run promise-returning & async functions in series, each passing its result to the next☆78Updated 2 months ago