docker-js-eval
v0.0.2
Published
Evaluate JS in a Docker container
Downloads
4
Readme
js-eval
$ echo '{ "environment": "node-cjs", code: "1 + 1" }' | docker run -i js-eval
2
const run = require('docker-js-eval');
run('1 + 1', 'node-cjs', { memory: '8m' }).then(console.log) // 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