Otiluke is a toolbox for JavaScript source-to-source compilers - here called transpilers - which are written as CommonJS modules. Otiluke is itself a npm module and as such, should be installed through npm install otiluke -g. You can try out Otiluke here. As demonstrated in usage, Otiluke can:
The transpiler module will always be executed side-by-side with the program targeted for transpilation. Such online transpilation process enables easy support of dynamic code evaluations such as eval(script). As illustrated here, Otiluke provides a log channel in the options argument to trace information gathered during the transpilation process or later, while executing the transpiled program.
https://github.com/lachrist/otiluke
https://www.npmjs.com/package/otiluke