@ajmal_n/lumen-core
v0.9.0
Published
Shared repo scanner, HTML/Markdown report renderer, and test-coverage parser for Lumen.
Readme
@ajmal_n/lumen-core
Shared library used by @ajmal_n/lumen-cli and lumen-desktop.
Provides a filesystem scanner and a self-contained HTML report renderer.
Install
npm install @ajmal_n/lumen-coreUsage
import { scanRepo, renderReport } from "@ajmal_n/lumen-core";
const stats = scanRepo("/path/to/repo");
const html = renderReport(stats);scanRepo(path)
Walks the directory tree at path, ignoring common build/dependency folders
(node_modules, .git, dist, build, coverage, .next, etc.) and
returns a RepoStats object with:
totalFiles,totalBytes,totalLinesbyExtension— per-extension file count, size, and line totalstopDirectories— files-per-top-level-directory rolluplargestFiles— top 15 files by sizenotableFiles— README, LICENSE, package.json, Dockerfile, etc., when presentignored— list of skipped directories
renderReport(stats)
Turns a RepoStats into a single HTML document with all CSS inlined — safe to
email, upload, or open offline. No JavaScript is emitted in the report.
Develop
This package lives in the Lumen monorepo. From the repo root:
npm install
npm run build:coreThe build emits core/dist/ (JS + .d.ts declarations) which both the CLI and
the desktop app consume via workspace linking.
