Skip to content

Instantly share code, notes, and snippets.

View robertDouglass's full-sized avatar

Robert Douglass robertDouglass

View GitHub Profile
@robertDouglass
robertDouglass / claude-tree.js
Created February 20, 2026 18:28 — forked from stackdumper/claude-tree.js
A script that produces a more compact project file tree for CLAUDE.m.
import { readdirSync, statSync } from 'fs'
import { join, basename } from 'path'
// Patterns to ignore (can be extended via args if needed)
const IGNORE_PATTERNS = ['.git', '.claude', 'node_modules', 'dist', '.DS_Store', 'pnpm-lock.yaml']
// File extensions to ignore
const IGNORE_EXTENSIONS = ['.png', '.csv']
type TreeNode = {