protoml-parser
Version:
ProtoML is a lightweight, declarative markup language designed for writing and structuring meeting protocols, notes and task lists in a human-readable and machine-parseable format.
18 lines (13 loc) • 410 B
JavaScript
const { spawn } = require("child_process");
const path = require("path");
const inputFile = process.argv[2];
if (!inputFile) {
console.error("❌ Usage: protoviewer <file.pml>");
process.exit(1);
}
const electronPath = require("electron");
const viewerPath = path.join(__dirname, "viewer.js");
spawn(electronPath, [viewerPath, inputFile], {
stdio: "inherit",
});