JavaScript Control Flow

Open-source JavaScript projects categorized as Control Flow

Top 23 JavaScript Control Flow Projects

  • async

    Async utilities for node and the browser

  • bluebird

    :bird: :zap: Bluebird is a full featured promise library with unmatched performance.

  • q

    A promise library for JavaScript

    Latest mention: How to Return multiple functions and values while working with REST APIs (Part 1) | dev.to | 2021-01-13

    q : This module is used for creating custom promises. Check it out here

  • co

    The ultimate generator based flow-control goodness for nodejs (supports thunks, promises, etc)

  • javascript-state-machine

    A javascript finite state machine library

  • when

    A solid, fast Promises/A+ and when() implementation, plus other async goodies.

  • step

    An async control-flow library that makes stepping through logic easy.

  • Fluture

    :butterfly: Fantasy Land compliant (monadic) alternative to Promises

    Latest mention: A Fallback for the JavaScript Pipeline Operator | dev.to | 2021-01-06

    This is great news for functionally-minded libraries such as Ramda, Sanctuary, Fluture, and many more. But it also makes some vanilla JavaScript nicer, for example:

  • pify

    Promisify a callback-style function

  • contra

    :surfer: Asynchronous flow control with a functional taste to it

  • zen-observable

    An Implementation of Observables for Javascript

  • p-map

    Map over promises concurrently

  • suspend

    Callback-free control flow for Node using ES6 generators.

  • delay

    Delay a promise a specified amount of time

    Latest mention: 🖥️🎥 Automated screen recording with JavaScript | dev.to | 2020-09-27

    To make sure last action is ended before doing another one, I add some delay between actions using delay.

  • js-csp

    CSP channels for Javascript (like Clojurescript's core.async, or Go) THIS IS AN UPSTREAM FORK

  • zone

    Flow control and error handling for Node.js

  • angular-async-loader

    Load modules and components asynchronously for angular 1.x application.

  • pinkie-promise

    Promise ponyfill with pinkie

  • each-async

    Async concurrent iterator (async forEach)

  • node-promise-breaker

    Helps you write libraries that accept both promises and callbacks.

  • bluebird-co

    A set of high performance yield handlers for Bluebird coroutines

  • promise-memoize

    Memoize promise-returning functions. Includes cache expire and prefetch.

  • cpsfy

    🚀 Tiny goodies for Continuation-Passing-Style functions, fully tested

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).