Skip to content

jpatterson933/bunx-ray

Repository files navigation

🎨 bunx-ray

ASCII heat-map for any directory. See what's taking up space, right in your terminal.


Install & Run

Requires Node.js >=20.

# global (recommended)
npm install -g bunx-ray

# or one-off
npx bunx-ray ./dist

Point it at any directory:

bunx-ray ./dist
bunx-ray ./node_modules
bunx-ray ./
bunx-ray --all ./dist

CLI

bunx-ray <dir>
Flag Description
--all Show all files in the table list
-v, --version Show version
-h, --help Show help

Config File

Create a .bunxrayrc.json or bunxray.config.json in your project root to set default options.

{
  "top": 15
}
Field Type Description
top number Number of top files to show

TypeScript API

import { xray, treemap, draw, renderReport } from "bunx-ray";

const mods = xray("./dist");

// Low-level
console.log(draw(treemap(mods, 80, 24), 80, 24, { color: true }));

// High-level
const report = renderReport(mods, { cols: 80, rows: 24, top: 10 });

All .d.ts files ship with the package.


Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT

About

ASCII heat-map for any directory. See what's taking up space, right in your terminal.

Resources

License

Contributing

Stars

Watchers

Forks

Contributors