Files
bun.sh/packages/bun-wasm/test/node.mjs
2025-05-12 17:12:17 -07:00

11 lines
260 B
JavaScript

import { readFileSync } from "fs";
import { getTests, init } from "../index.mjs";
const filePath = process.argv[2];
if (!filePath) throw new Error("Usage: node node.mjs <file>");
const buf = readFileSync(filePath);
await init();
console.log(getTests(buf));