ASCII heat-map for any directory. See what's taking up space, right in your terminal.
Requires Node.js >=20.
# global (recommended)
npm install -g bunx-ray
# or one-off
npx bunx-ray ./distPoint it at any directory:
bunx-ray ./dist
bunx-ray ./node_modules
bunx-ray ./
bunx-ray --all ./distbunx-ray <dir>
| Flag | Description |
|---|---|
--all |
Show all files in the table list |
-v, --version |
Show version |
-h, --help |
Show help |
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 |
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.
See CONTRIBUTING.md for development setup and guidelines.