pify-async
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

pify-async

promisified async package

Install

npm install pify-async --save
yarn add pify-async

Usage

const async = require('pify-async')
 
const callbacks = [1, 2, 3].map(it => cb => {
    setTimeout(() => {
        cb(null, it)
    }, 1000)
})
 
async.series(callbacks).then(data => {
    console.log(data)
})

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i pify-async

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • elixiao