A tiny Go CLI to generate index.ts / index.tsx files for your TypeScript codebase.
- Recursively scans your project for
.ts/.tsx(skips.d.tsand existingindex.*) - Enforces a configurable max file-count (default 10000)
- Chooses
.tsxfor an index if any.tsxis found in its subtree - Exports all immediate files and subfolders that contain TS(X)
- Supports ignore patterns (default:
node_modules,.gitetc.) - Supports
--dry-run,--verbose - Zero dependencies beyond the Go stdlib
# with Go 1.18+ installed:
go install github.com/ashrhmn/tsndexer@latest
# or, clone & build manually:
git clone https://github.com/ashrhmn/tsndexer.git
cd tsndexer
go build -o tsndexer .