sindresorhus / p-if
Conditional promise chains
☆60Updated 3 years ago
Alternatives and similar repositories for p-if:
Users that are interested in p-if are comparing it to the libraries listed below
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 3 years ago
- Conditional promise catch handler☆38Updated 3 years ago
- A better `Promise.race()`☆46Updated 2 years ago
- Create a lazily evaluated value☆69Updated 3 years ago
- Make a promise always fulfill with its actual fulfillment value or rejection reason☆53Updated 2 years ago
- Get metadata on the default editor or a specific editor☆53Updated last year
- Lazy number range generator☆81Updated last year
- Run promise-returning & async functions a specific number of times concurrently☆39Updated 3 years ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Mimic a Node.js HTTP response stream☆59Updated last year
- Linkify GitHub issue references☆46Updated 5 months ago
- Define a lazily evaluated property on an object☆64Updated last year
- Ensures a value is a valid error by making it one if not☆77Updated 2 years ago
- Log the value/error of a promise☆26Updated 3 years ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 3 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated 11 months ago
- Get the path of the parent module☆77Updated last year
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Simple wildcard matching☆34Updated 3 years ago
- Map over promises serially☆48Updated 3 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 3 years ago
- Input module for Listr☆33Updated 5 years ago
- Get the shortest leading whitespace from lines in a string☆19Updated 4 years ago
- Check if a URL is absolute☆79Updated 3 years ago
- Turn an object into a string of HTML attributes☆49Updated last year
- Check when the DOM has loaded like `DOMContentLoaded`☆109Updated 6 months ago
- Get the first fulfilled promise that satisfies the provided testing function☆74Updated 3 weeks ago
- jscodeshift wrapper to write smaller and better tests for your codemods using AVA☆13Updated 8 years ago
- Extract the actual stack of an error☆66Updated 2 years ago