https://github.com/ruskydev/better-tree
A fast, customizable directory tree viewer for the terminal.
https://github.com/ruskydev/better-tree
better-tree cli command-line console dir-tree directory directory-tree file-structure file-system file-tree filesystem folder folder-tree fs node-cli recursive-list terminal tree
Last synced: 6 months ago
JSON representation
A fast, customizable directory tree viewer for the terminal.
- Host: GitHub
- URL: https://github.com/ruskydev/better-tree
- Owner: RuskyDev
- License: mit
- Created: 2025-08-04T08:31:52.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-08-04T08:45:48.000Z (6 months ago)
- Last Synced: 2025-08-04T12:08:55.004Z (6 months ago)
- Topics: better-tree, cli, command-line, console, dir-tree, directory, directory-tree, file-structure, file-system, file-tree, filesystem, folder, folder-tree, fs, node-cli, recursive-list, terminal, tree
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@ruskydev/better-tree
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @ruskydev/better-tree
A fast, customizable directory tree viewer for the terminal.
## Installation
You can run it directly with `npx` (no install needed):
```bash
npx @ruskydev/better-tree --help
````
Or install globally:
```bash
npm install -g @ruskydev/better-tree
better-tree --help
```
## Usage
```bash
better-tree [directory] [options]
```
### Options
```
--ignore Ignore matching files/folders (supports *, **)
--depth Limit recursion depth
--files-only Show only files
--dirs-only Show only directories
--help Show this help message
```
### Examples
```bash
# Show current directory tree
npx @ruskydev/better-tree .
# Ignore node_modules and dist
npx @ruskydev/better-tree src --ignore node_modules dist
# Limit depth to 2
npx @ruskydev/better-tree --depth 2
# Show only directories
npx @ruskydev/better-tree --dirs-only
```
## License
This project is licensed under the [MIT License](LICENSE).