Sign inSign up

brigand/js-eval

By brigand

•Updated about 8 years ago

Image
0

876

brigand/js-eval repository overview

⁠js-eval

$ docker run --rm -i js-eval <<<'1 + 1'
2
const run = require('docker-js-eval');

run('1 + 1', { memory: '8m' }).then(console.log) // 2

Environments (passed with JSEVAL_ENV environment variable):

  • node-cjs (default) Like evaluating a normal Node.js CommonJS module
  • node-esm Coming soon
  • module Evaluates as an ES Module
  • script Evaluates as an ES Script

Tag summary

Content type

Image

Digest

sha256:c5eeab601…

Size

64.1 MB

Last updated

about 8 years ago

docker pull brigand/js-eval