ES2015 Promisify Library
This library enables node-styled functions to work as Promises through the use of ES2015 syntax.
Examples
Single-valued callback with multiple parameters
For a snipped like the following:
'use strict'; const Promisify = ; // Test a promise that returns a single value { ;} { let sumPromise = ; console;} ;
We'd expect to have an output like this one:
4
Multiple-valued output with multiple arguments
For a snippet like the following
'use strict'; const Promisify = ; // Test return of multiple values { ;} { let multiOutputPromise = ; console
We'd expect to have an output like this one:
['a', 'b']
Function bound to an object state
For a snippet like the following:
'use strict'; const Promisify = ; // Test binding of methods inside objects { this_prop = 3; } { return this_prop; } { this_prop += 1; ; } { let bindable = ; let incrementPromise = ; console;} ;
We'd expect an output like this one:
4