npm.io
1.0.0 • Published 8 years ago

pipeawait

Licence
MIT
Version
1.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
9

See the blog Post

PipeAwait

Compose asynchronous functions(Promises and async/await). If you are a big fun of Lodash.flow you will love this small utilty.

Installation

npm install pipeawait

The Problem

You need a simple utility to compose your functions including asynchronous functions just like you will do using lodash/flow

The Solution
npm install pipeawait  // install from npm 

const pipe = require("pipeawait")

const sync404Issues = pipe(
   find404Issues, // async function
   transform404Issues, 
   addNew404WebmasterIssues, // async function
   publishNew404Issues
)

Keywords