I'm pretty sure it's impossible to use the mentioned module on Espruino.
as @maze1980 points out, because I may use ES5/ES6 things that are not implemented yet or are impractical to implement in Espruino, last but not least because of the resources on the mcs used, but also because of the way Espruino JavaScript interpreter genuinely works.
NodeJs lives in a different context and makes therefore different presumptions. One of them is: memory is practically limit less - even more so for short periods - and code is 'compiled' into virtual machine code. These is perfect fine thinking for servers or browsers where NodeJs runs and browserified modules run.
Transpilers can help to 'bring things down' to implemented functionality, but that covers only half the story.
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.
@user106443
as @maze1980 points out, because I may use ES5/ES6 things that are not implemented yet or are impractical to implement in Espruino, last but not least because of the resources on the mcs used, but also because of the way Espruino JavaScript interpreter genuinely works.
NodeJs lives in a different context and makes therefore different presumptions. One of them is: memory is practically limit less - even more so for short periods - and code is 'compiled' into virtual machine code. These is perfect fine thinking for servers or browsers where NodeJs runs and browserified modules run.
Transpilers can help to 'bring things down' to implemented functionality, but that covers only half the story.