dependency-smell-reporter
Version:
A CLI tool that detects unused, outdated, and missing dependencies with reporting.
26 lines (18 loc) โข 620 B
JavaScript
const { analyzeDependencies } = require("../lib/analyze");
const { printReport, writeLogFile } = require("../lib/reporter");
(async () => {
try {
console.log("๐ Running Dependency Smell Reporter...\n");
const report = await analyzeDependencies(process.cwd());
console.log("๐งช Got report:\n", report); // Show full object
if (!report) {
console.error("โ Report is undefined or null.");
return;
}
printReport(report);
writeLogFile(report);
} catch (err) {
console.error("โ CLI crashed:", err.message);
}
})();