It's maybe not be perfectly optimized for Espruino for now, but I'm using it in different JS based projects for a while now and its doing what its meant to do :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I've adjusted a promise module for Espruino a while ago, you can have look at it here:
https://github.com/ifavo/espruino-modules/blob/master/org.favo.promise.js
This is how it works:
https://github.com/ifavo/espruino-modules/blob/master/org.favo.promise-Examples.js
It's maybe not be perfectly optimized for Espruino for now, but I'm using it in different JS based projects for a while now and its doing what its meant to do :)