spdx/rollup-plugin-spdx(opens in a new tab)
Language: TypeScript
- stars
- 2
- watchers
- 4
- forks
- 0
- open issues
- 1
- Last updated
- 12/14/2023
Language: TypeScript
A Rollup plugin to create SBOM files in the SPDX format.
When added to a Rollup configuration, this plugin will create an SBOM file for the package that is being built. The SBOM file will be written to the same directory as the output file. It lists all built files and the source files they were built from, as well as the relationship between them.
Important: This plugin is in early development state and can not yet be used in production.
To install the plugin using npm, run:
npm install --save-dev git+https://github.com/spdx/rollup-plugin-spdx.git
Add the plugin to your rollup.config.js:
import spdx from "rollup-plugin-spdx"; const config = [ // ... { input: "src/index.js", output: { file: "dist/index.js", format: "cjs" }, plugins: [ spdx("my-package")], }, ]; export default config;
The plugin expects the name of the package as parameter. The provided name will be used as the name of the created SBOM file.
We welcome contributions to this repository.
See CONTRIBUTING.md for more information.