This library contains the building blocks that can be used to create TypeScript code. It's all based on TypeScript AST(an API of the TypeScript team to create AST nodes).
A good tool to visualize what AST is can be found on TypeScript AST Viewer, here you can see what the AST code would be based on some TypeScript code.
To get started with TypeScript AST, I would suggest following this tutorial: Generating TypeScript using AST's.
This library contains also the logic to
index.ts files based on a folder structure(see
bun add @kubb/parser
pnpm add @kubb/parser
npm install @kubb/parser
yarn add @kubb/parser