- Pin `@types/bun` to `^1.3.14` for reproducible builds instead of using `latest` - Update `tsconfig.json` with stricter type-checking flags and reorganize compiler options - Refactor `initConfig` to DRY up the model default logic and add a null guard before process exit
6 lines
216 B
TypeScript
6 lines
216 B
TypeScript
import { renderMarkdown } from "./src/render/markdown";
|
|
|
|
const text = await Bun.file("README.md").text();
|
|
|
|
const [columns] = process.stdout.getWindowSize();
|
|
process.stdout.write(await renderMarkdown(text, columns));
|