node-topromise
A NodeJS library that works not-unlike util.promisify except it supports multiple callback arguments and also handles "this"
USAGE:
npm install arc-topromise
let tp = // Because topromise was already taken :^)let result = await tp; // For callback functions with 0 or 1 "value" argumentslet result = await tp; // First argument can be a object, used to correct "this" let results = await tp; // For callback functions with more than 1 "value" argument;
EXAMPLE:
let mysql = ; //Just using this as an examplelet connection = mysql; await tp;let results = await tp0;