bluebird-async-wrap

0.3.0 • Public • Published

Bluebird Async Wrapper

Helper to migrate from Bluebird to async/await by wrapping each async method with bluebird Resolve

Install

npm install bluebird-async-wrap

Usage

const bluebirdify = require('bluebird-async-wrap');
 
class Test {
 async asyncMethod () {
   return true;
 }
 
 syncMethod () {
   return true;
 }
}
 
bluebirdify(Test);

Package Sidebar

Install

npm i bluebird-async-wrap

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

4.65 kB

Total Files

6

Last publish

Collaborators

  • hyperlink