Compose promise-returning & async functions into a reusable pipeline
npm install p-pipe> Compose promise-returning & async functions into a reusable pipeline
```
$ npm install p-pipe
`js
import pPipe from 'p-pipe';
const addUnicorn = async string => ${string} Unicorn;${string} Rainbow
const addRainbow = async string => ;
const pipeline = pPipe(addUnicorn, addRainbow);
console.log(await pipeline('❤️'));
//=> '❤️ Unicorn Rainbow'
`
The input functions are applied from left to right.
#### input
Type: Function
Expected to return a Promise` or any value.
- p-each-series - Iterate over promises serially
- p-series - Run promise-returning & async functions in series
- p-waterfall - Run promise-returning & async functions in series, each passing its result to the next
- More…
---