šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

bluebird-async-wrap

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bluebird-async-wrap

Help migrate bluebird from async/await

0.3.0
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
Ā 
Created
Source

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

Keywords

bluebird

FAQs

Package last updated on 25 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts