https://github.com/hyperlink/bluebird-async-wrapper
Helper to migrate from Bluebird to async/await by wrapping each async method with bluebird Resolve
https://github.com/hyperlink/bluebird-async-wrapper
async-await bluebird
Last synced: 4 months ago
JSON representation
Helper to migrate from Bluebird to async/await by wrapping each async method with bluebird Resolve
- Host: GitHub
- URL: https://github.com/hyperlink/bluebird-async-wrapper
- Owner: hyperlink
- License: mit
- Created: 2018-04-24T17:24:00.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-25T18:39:29.000Z (about 7 years ago)
- Last Synced: 2025-02-27T08:23:32.929Z (5 months ago)
- Topics: async-await, bluebird
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bluebird Async Wrapper
[](https://travis-ci.org/hyperlink/bluebird-async-wrapper)
Helper to migrate from Bluebird to async/await by wrapping each async method with bluebird Resolve
## Install
```bash
npm install bluebird-async-wrap
```## Usage
```javascript
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!'));
```