createFileTree
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
A utility for generating a visual file tree representation for Val Town Projects.
import createFileTree from "https://esm.town/v/nbbaier/createFileTree/main.ts";
const treeOutput = await createFileTree("std", "reactHonoStarter");
console.log(treeOutput);
The following is the output for reactHonoStarter project
std/reactHonoStarter
├── backend
│ └── index.ts
├── frontend
│ ├── components
│ │ └── App.tsx
│ ├── favicon.svg
│ ├── index.html
│ ├── index.tsx
│ └── style.css
└── README.md