type-theory/aux/preprocessGraph.ts

14 lines
255 B
TypeScript
Raw Normal View History

2024-06-03 04:10:40 +00:00
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));