Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 957 Bytes

README.md

File metadata and controls

37 lines (22 loc) · 957 Bytes

letsdothis NPM version Build Status

https://github.com/nirmaoz/letsdothis

letsdothis pipes a series of functions returning a promise.

Installation

$ npm install --save letsdothis

Usage

const letsdothis = require('letsdothis');

//addOne can return a value or a promise
let f = letsdothis(addOne, addOne, addOne, addOne);
f(0).then((result) => {
    console.log(result); //4
});

API

letsdothis (...functions ) → function ( input ) → promise

Tests

Tested using Mocha and Expect

License

MIT © Nir Maoz