securityos/node_modules/wasi-js/bin/run.js

9 lines
224 B
JavaScript
Executable File

#!/usr/bin/env node
const { run } = require("../dist/runtime");
if (process.argv.length <= 2) {
throw Error("must provide path to .wasm code");
}
process.argv = process.argv.slice(2);
let [name] = process.argv;
run(name);