pflow

1.0.0 • Public • Published

pflow

Create flow of promised functions. Same as lodash.flow but handles promises.

Installation

npm install pflow

Usage

var Promise = require('bluebird');
var flow = require('pflow');
 
function inc (x) {
    return Promise.resolve(+ 1);
}
 
var inc3 = flow(inc, inc, inc);
 
inc3(0).then(function (x) {
    console.log(x); // 3
});

/pflow/

    Package Sidebar

    Install

    npm i pflow

    Weekly Downloads

    5

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • boo1ean