Skip to content
51

promise-fun

Promise packages, patterns, chat, and tutorials

5.2k stars137 forks49 entriesLast push Apr 25, 2024 (2 years ago)License CC0-1.0

This page lists names, links and short descriptions. The original list on GitHub is the source and belongs to its authors.

Packages

pify

Promisify a callback-style function

In 6 listsDetails

delay

Delay a promise a specified amount of time

In 5 listsDetails

yoctodelay

Delay a promise a specified amount of time

p-map

Map over promises concurrently

In 4 listsDetails

p-all

Run promise-returning & async functions concurrently with optional limited concurrency

In 2 lists

p-event

Promisify an event by waiting for it to be emitted

In 2 lists

p-debounce

Debounce promise-returning & async functions

In 2 lists

p-throttle

Throttle promise-returning & async functions

In 2 lists

p-timeout

Timeout a promise after a specified amount of time

In 2 lists

p-retry

Retry a promise-returning or async function

In 2 lists

p-any

Wait for any promise to be fulfilled

In 2 lists

p-some

Wait for a specified number of promises to be fulfilled

In 2 lists

p-mutex

Ensure that only one operation accesses a particular resource at a time

p-locate

Get the first fulfilled promise that satisfies the provided testing function

p-limit

Run multiple promise-returning & async functions with limited concurrency

In 2 lists

p-series

Run promise-returning & async functions in series

p-memoize

Memoize promise-returning & async functions

In 2 lists

p-pipe

Compose promise-returning & async functions into a reusable pipeline

In 2 lists

p-props

Like Promise.all() but for Map and Object

In 2 lists

p-waterfall

Run promise-returning & async functions in series, each passing its result to the next

p-cancelable

Create a promise that can be canceled

p-progress

Create a promise that reports progress

p-reflect

Make a promise always fulfill with its actual fulfillment value or rejection reason

p-filter

Filter promises concurrently

In 2 lists

p-reduce

Reduce a list of values using promises into a promise for a value

In 2 lists

p-settle

Settle promises concurrently and get their fulfillment value or rejection reason with optional limited concurrency

In 2 lists

p-map-series

Map over promises serially

In 2 lists

p-each-series

Iterate over promises serially

In 2 lists

p-times

Run promise-returning & async functions a specific number of times concurrently

In 2 lists

p-lazy

Create a lazy promise that defers execution until .then() or .catch() is called

In 2 lists

p-whilst

While a condition returns true, calls a function repeatedly, and then resolves the promise

In 2 lists

p-do-whilst

Calls a function repeatedly while a condition returns true and then resolves the promise

p-forever

Run promise-returning & async functions repeatedly until you end it

p-wait-for

Wait for a condition to be true

In 2 lists

p-min-delay

Delay a promise a minimum amount of time

p-try

Promise.try() ponyfill - Starts a promise chain

In 2 lists

p-race

A better Promise.race()

In 2 lists

p-immediate

Returns a promise resolved in the next event loop - think setImmediate()

p-time

Measure the time a promise takes to resolve

In 2 lists

p-defer

Create a deferred promise

In 2 lists

p-is-promise

Check if something is a promise

p-state

Inspect the state of a promise

p-queue

Promise queue with concurrency control

In 2 lists

make-synchronous

Make an asynchronous function synchronous

Packages >.then/.catch-based packages

p-catch-if

Conditional promise catch handler

In 2 lists

p-if

Conditional promise chains

In 2 lists

p-tap

Tap into a promise chain without affecting its value or state

In 2 lists

p-log

Log the value/error of a promise

In 2 lists

p-break

Break out of a promise chain

In 2 lists
See category
94

Awesome Rust

rust-unofficial/awesome-rust

A curated list of Rust code and resources.

Fresh★ 60k1833 entriesPushed today
94

Awesome Mac

jaywcjlove/awesome-mac

 This project is dedicated to collecting high-quality macOS software and organizing them systematically by different categories for easy search and use.

Fresh★ 115k1316 entriesPushed today
94

Awesome Python

vinta/awesome-python

Curated Python frameworks, libraries and resources.

Fresh★ 324k504 entriesPushed today
94

Awesome C++

fffaraz/awesome-cpp

A curated list of awesome C++ (or C) frameworks, libraries, resources, and shiny things. Inspired by awesome-... stuff.

Fresh★ 74k1358 entriesPushed yesterday
94

Awesome Go

avelino/awesome-go

Curated Go frameworks and libraries.

Fresh★ 186k3119 entriesPushed yesterday
94

Awesome PHP

ziadoz/awesome-php

A curated list of amazingly awesome PHP libraries, resources and shiny things.

Fresh★ 33k87 entriesPushed 2 days ago