UNPKG

dependency-smell-reporter

Version:

A CLI tool that detects unused, outdated, and missing dependencies with reporting.

26 lines (18 loc) โ€ข 620 B
#!/usr/bin/env node 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); } })();