This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

compose-await

1.0.2 • Public • Published

compose-await

compose for async functions

Composes async functions, awaiting each of them. Please keep in mind that functions are applied from right to left and only may take one argument.

Installation

yarn add compose-await

Usage

const compose = require('compose-await');
 
const first = async function(a) {
    // ...
};
 
const second = async function(b) {
    // ...
};
 
const third = async function(c) {
    // ...
};
 
const together = compose(third, second, first);
const result = await together(42);

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i compose-await

    Weekly Downloads

    2

    Version

    1.0.2

    License

    Apache-2.0

    Last publish

    Collaborators

    • dak0rn