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
- Conditional promise catch handler☆38Updated 3 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 3 years ago
- Lazy number range generator☆81Updated last year
- Wait for any promise to be fulfilled☆55Updated 2 years ago
- A better `Promise.race()`☆46Updated 2 years ago
- Mimic a Node.js HTTP response stream☆59Updated last year
- Run promise-returning & async functions a specific number of times concurrently☆39Updated 3 years ago
- Get namespaced config from the closest package.json☆121Updated last year
- Define a lazily evaluated property on an object☆64Updated last year
- Get metadata on the default editor or a specific editor☆53Updated last year
- Ensures a value is a valid error by making it one if not☆77Updated 2 years ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 3 years ago
- Iterate over promises serially☆50Updated 2 years ago
- Returns an array filled with the specified input☆42Updated 2 years ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 3 years ago
- Create a lazily evaluated value☆69Updated 3 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Get the path of the parent module☆77Updated last year
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Make a promise always fulfill with its actual fulfillment value or rejection reason☆53Updated 2 years ago
- Log the value/error of a promise☆26Updated 3 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated 10 months ago
- Map over promises serially☆48Updated 3 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Import a globally installed module☆57Updated last year
- Rename a function☆46Updated last year
- Get the first fulfilled promise that satisfies the provided testing function☆73Updated 2 years ago
- Get CI environment variables for parallelizing builds☆38Updated 4 years ago