Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 days 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-25T18:39:29.000Z (almost 7 years ago)
- Last Synced: 2024-12-24T07:31:11.173Z (about 1 month 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
[![Build Status](https://travis-ci.org/hyperlink/bluebird-async-wrapper.svg?branch=master)](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!'));
```