You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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
npmnpm
Version published
Weekly downloads
3
50%
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