type-theory/aux/preprocessGraph.ts
2024-06-03 00:10:40 -04:00

13 lines
255 B
TypeScript

if (Bun.argv.length > 1) {
if (Bun.argv[2] === "supports") {
process.exit(0);
}
}
const doc = await Bun.stdin.json();
// Bun.write("book.json", JSON.stringify(doc));
// TODO: Generate some kind of graph of pages?
console.log(JSON.stringify(doc));