Skip to content

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

License

Notifications You must be signed in to change notification settings

hyperlink/bluebird-async-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bluebird Async Wrapper

Build Status

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);

const test = new Test();

test.asyncMethod().tap( v => console.log('this works!'));

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages