allora
Promisify everything in less tha ~50 lines It can be used to use promises on any javascript object.
Examples
Basic
Or simply:
const myWindow = myWindowonload
Example in Node:
const allora = const myGlobal = Promise
Example in browser:
const myWindow = const p1 = myWindowconst p2 = myWindowconst p3 = myWindow p1p2p3 Promiseallp1 p2 p3
Clear timers
Thanks to this pull request it's now also possible to clear the timers
const myWindow = const timer = myWindowtimer// the valueOf call should be not needed here// but if you are on node, you will need it https://github.com/nodejs/node/issues/7792
"allora" meaning
"allora" is the Italian 🇮🇹 word for then