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.

Project File Tree Generator

A utility for generating a visual file tree representation for Val Town Projects.

Usage

import createFileTree from "https://esm.town/v/nbbaier/createFileTree/main.ts"; const treeOutput = await createFileTree("std", "reactHonoStarter"); console.log(treeOutput);

Example Output

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