convert.tsTypeScript
import { Crust } from "@crustjs/core";
const convert = new Crust("convert")
.args({ name: "input", type: "string", required: true })
.flags({ name: "to", type: "string", default: "html" })
.action(({ args, flags, stdout }) => {
stdout(`Converting ${args.} as ${flags.}`);
});
await convert.execute();bun run convert.ts report.mdConverting report.md as html bun run convert.ts report.md --to pdfConverting report.md as pdf