1.1.1 • Published 6 years ago
letsdothis v1.1.1
letsdothis
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
License
MIT © Nir Maoz