Generate comprehensive Software Bill of Materials (SBOM) for your projects
npm install @billofmaterial/cliGenerate comprehensive Software Bill of Materials (SBOM) for your projects with security analysis, risk assessment, and bundle size insights.
- 🔍 Security Analysis - Get security scores and vulnerability insights for all dependencies
- 📦 Bundle Size Analysis - Understand the impact of each dependency on your bundle
- ⚠️ Risk Assessment - Identify high-risk packages with detailed risk factors
- 🏗️ Monorepo Support - Works seamlessly with pnpm, yarn, npm workspaces, and Lerna
- 📊 Comprehensive Reports - Generate markdown and JSON reports
- ⚖️ License Compliance - Identify problematic licenses
- 🏚️ Maintenance Status - Find abandoned or unmaintained packages
You don't need to install it! Use pnpm dlx (recommended) or npx:
``bashUsing the CLI package directly (recommended)
pnpm dlx @billofmaterial/cli generate
Or install globally:
`bash
npm install -g billofmaterial/cli
or
pnpm add -g billofmaterial/cli
`Usage
$3
Generate an SBOM for your current project:
`bash
billofmaterial/cli generate
`$3
`bash
billofmaterial/cli generate [options]Options:
-p, --path Path to project directory (default: current directory)
-o, --output Output file path (default: "SBOM.md")
--json Also output JSON format
--no-dev Exclude dev dependencies
--no-bundle-size Skip bundle size analysis
-h, --help Display help for command
`$3
`bash
Generate SBOM for current directory
billofmaterial/cli generateGenerate SBOM for specific project
billofmaterial/cli generate -p ./my-projectGenerate SBOM with custom output
billofmaterial/cli generate -o ./docs/DEPENDENCIES.mdGenerate both markdown and JSON
billofmaterial/cli generate --jsonSkip dev dependencies
billofmaterial/cli generate --no-devSkip bundle size analysis (faster)
billofmaterial/cli generate --no-bundle-size
``You can also use the web interface at https://billofmaterial.dev to upload your package.json or entire project and generate SBOM online.
The generated SBOM includes:
- Executive Summary - Overview of dependencies, security scores, and risks
- Key Insights - Top security risks, largest dependencies, license issues
- Dependency Tables - Detailed information for each dependency including:
- Security scores from Snyk
- Bundle sizes from Bundlephobia
- License information
- Risk assessment
- Last update date
- Monorepo Support - Separate analysis for each package in monorepos
MIT