Generates a detailed report of the project contents.
Unlike other transforms, inspect() does NOT modify the document — it returns a structured report.
inspect()
const report = inspect(doc);console.log(`${report.totals.packages} packages, ${report.totals.components} components`); Copy
const report = inspect(doc);console.log(`${report.totals.packages} packages, ${report.totals.components} components`);
Generates a detailed report of the project contents.
Unlike other transforms,
inspect()does NOT modify the document — it returns a structured report.