securityos/node_modules/.bin/wasi-run

9 lines
224 B
Plaintext
Raw Normal View History

2024-09-06 15:32:35 +00:00
#!/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);