
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@skapxd/tree
Advanced tools
Visualize your project structure: Directories & File Outlines.
A modern, TypeScript-based CLI tool that intelligently adapts to your input.
Optimized for Documentation and AI Context, providing a token-efficient overview of your codebase.
The fastest way to use it is with npx. It works instantly in any directory.
# 📂 Directory Mode: View folder structure
npx @skapxd/tree
# 📂 Directory Mode: View specific folder
npx @skapxd/tree ./src
# 📄 File Mode: View file structure (Outline)
npx @skapxd/tree src/index.ts
Point tree to a supported file to see a high-level overview of its contents without reading the whole code.
Supported Formats:
.ts, .tsx.js, .jsx, .mjs, .cjs.md.astroExample Output:
Lines │ Type │ Symbol
─────────────┼────────────┼────────────────────────────────────────
1-1 │ import │ ├── fs
2-2 │ import │ ├── path
10-15│ interface │ ├── User
18-25│ func │ ├── getUser
19-19│ var │ │ └── id
30-45│ class │ └── UserService
32-35│ meth │ └── fetch
This tool is specifically designed to help AI Agents (like ChatGPT, Claude, Gemini, or GitHub Copilot) understand your project architecture without consuming massive context windows.
Why is this better for AI?
src
├── index.ts
├── cli.ts
├── utils
│ ├── parser.ts
│ └── drawer.ts
└── components
├── Button.tsx
└── Header.tsx
By default, the tool automatically respects your .gitignore file.
It also filters out common clutter like .git and .DS_Store to ensure clean, AI-ready output.
| Flag | Description | Context |
|---|---|---|
[path] | (Positional) Directory or File to scan. Defaults to current dir. | Both |
-i, --ignore | Override default ignore patterns with a custom regex. | Directory |
-f, --only-folder | Output only directories, hiding files. | Directory |
-e, --export | Save the output to a text file. | Both |
-d, --directory | (Alternative) Specify path via flag. | Both |
If you use it frequently, you can install it globally:
npm install -g @skapxd/tree
# or
pnpm add -g @skapxd/tree
Then run it simply as:
tree
# or
npx @skapxd/tree
This project uses TypeScript, Tsup for bundling, and Vitest for testing.
# Install dependencies
yarn install
# Run in development mode
yarn dev
# Build for production
yarn build
# Run tests
yarn test
MIT
FAQs
A directory structure tree generator for CLI
The npm package @skapxd/tree receives a total of 5 weekly downloads. As such, @skapxd/tree popularity was classified as not popular.
We found that @skapxd/tree demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.