benjypng / credits-generator

Generates a list of open-source software within a repository, and a separate list for packages with undefined licenses.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

Script to generate key details of a repository's dependencies using cyclonedx-node-npm. This script generates 3 files:

  • sbom.txt: Main list of dependencies
  • unique-licenses.txt: Unique list of licenses found across all dependencies
  • undef-licenses.txt: List of dependencies without a defined license

By default, package.json files in the node_modules and bruno folder are ignored.

Sample Output

======================================================
Name: iterare
Group: undefined
Version: 1.2.1
BOM-Ref: iterare@1.2.1
Author: Felix Becker
Licenses: ISC
======================================================
Name: reflect-metadata
Group: undefined
Version: 0.2.2
BOM-Ref: reflect-metadata@0.2.2
Author: Ron Buckton
Licenses: Apache-2.0
======================================================

Installation

  1. Go to the repository's root directory.
  2. Run npx sbom-generator ..

Credits

cyclonedx-node-npm

About

Generates a list of open-source software within a repository, and a separate list for packages with undefined licenses.

License:MIT License


Languages

Language:JavaScript 100.0%