blob: 9c2f503d403f5f4b9758548f6de28ff3d67cfb7b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import { readFileSync } from "fs";
import { init, getTests } 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));
|