This release is 3 versions behind 0.3.6 — the latest version of @disjukr/bdl. Jump to latest
TypeScript implementation of BDL. You can use this library to implement your own BDL code generation.
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
58%
Published
4 months ago (0.3.3)
import { SyntaxError } from "../src/parser/parser.ts"; import parseBdl from "../src/parser/bdl-parser.ts"; const [filePath] = Deno.args; if (!filePath) { console.error("No file path provided."); Deno.exit(1); } const code = await Deno.readTextFile(filePath); try { console.log(JSON.stringify(parseBdl(code), null, 2)); } catch (err) { if (err instanceof SyntaxError) { console.error(err.message); Deno.exit(1); } else throw err; }