UNPKG

legal-markdown-js

Version:

Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version

17 lines 725 B
#!/usr/bin/env node /** * Playground subcommand for the legal-md binary. * * Serves the dist/web directory as a static HTTP server and opens the * browser. Invoked via `legal-md playground`. * * Path resolution order: * 1. Relative to the binary (process.execPath) - works for Homebrew installs * where the binary lives in <prefix>/bin/ and assets in <prefix>/dist/web/ * 2. Relative to process.cwd() - works during development / npm link */ import http from 'http'; import type { AssetMap } from './embedded-assets.js'; export declare function buildRequestHandler(assetMap: AssetMap, webDir: string): http.RequestListener; export declare function main(): Promise<void>; //# sourceMappingURL=index.d.ts.map