An open API service indexing awesome lists of open source software.

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

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
```