asbox

[nodejs] Secure async code evaluation

Usage no npm install needed!

<script type="module">
  import asbox from 'https://cdn.skypack.dev/asbox';
</script>

README

ASbox

[nodejs] Secure async code evaluation

Install

npm install asbox

Usage

var run = require('asbox');
var src = "(function(){ return v; })()";
run(src, { v: 42 }, function(out){
    console.log(out);
});
console.log('This runs before');