js-eval
$ echo '{ "environment": "node-cjs", code: "1 + 1" }' | docker run -i js-eval2
const run = ; // 2
Environments:
node-cjs
Like evaluating a normal Node.js CommonJS modulenode-esm
Coming soonmodule
Evaluates as an ES Modulescript
Evaluates as an ES Script