https://github.com/nounder/buntree
Prints a TypeScript/JavaScript dependencies in a codebase
https://github.com/nounder/buntree
bun bundler dependencies tree
Last synced: 2 months ago
JSON representation
Prints a TypeScript/JavaScript dependencies in a codebase
- Host: GitHub
- URL: https://github.com/nounder/buntree
- Owner: nounder
- Created: 2025-07-11T17:10:49.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-11T17:14:39.000Z (11 months ago)
- Last Synced: 2026-02-07T06:33:14.213Z (4 months ago)
- Topics: bun, bundler, dependencies, tree
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# buntree
Prints a TypeScript/JavaScript dependencies in a codebase, powered by Bun.
## Usage
```
bunx nounder/buntree --help
```
Pass `--resolve` to resolve module identifier to its real path.
All paths are relative to current working directory.
Provide`--absolute` to make paths absolute.
---
```
Usage: buntree [command] [flags]
Commands:
tree Prints the import tree with optional --resolve and --full flags (errors to stderr)
modules Prints unique imports
Flags:
--resolve Print resolved paths instead of module identifiers
--full Expand relative paths to full absolute paths
If no command is specified, 'tree' will be run by default
```
## Example output
```
[...]
src/FileRouter_tree.test.ts
bun:test
./FileRouter.ts
src/StartHttp.ts
@effect/platform
effect
.
src/x/tanstack-react-router/TanstackRouter.ts
@tanstack/react-router
effect
effect-bundler
react
../../FileSystemExtra.ts
./TanstackRouterCodegen.ts
[...]
```
## Test
```
bun test
```