I just tagged 1.0.0 of ts-treegen, a small TypeScript library for describing file structures as data and writing them to disk.
If you've ever built a CLI, a scaffolding tool, or anything that needs to generate a bunch of files and folders, you know the usual approach: a pile of fs.writeFileSync calls, manual path joins, and conditional logic scattered everywhere. ts-treegen is my attempt at making that feel less like plumbing and more like just describing what you want.
What it looks like
import { file, dir, emit, plan } from "ts-treegen/node";
const files = await emit(






