project-xray
v1.0.0
Published
Scan and analyze a project codebase from the terminal
Downloads
150
Maintainers
Readme
project-xray
Scan and analyze any codebase from the terminal — file counts, sizes, extensions, and unused dependency detection.
Install
npm install -g project-xrayOr run locally without installing:
npx project-xrayUsage
Scan the current directory:
xrayScan a specific project:
xray ./my-appOutput as JSON:
xray --jsonIgnore additional paths:
xray --ignore "**/*.test.ts" "**/fixtures/**"Programmatic API
import { scanProject, formatBytes } from "project-xray";
const result = await scanProject({ cwd: process.cwd() });
console.log(result.totalFiles);
console.log(formatBytes(result.totalSize));Development
npm install
npm run build
npm link
xray .License
ISC
