How to use the @cyclonedx/bom.createbom function in @cyclonedx/bom

To help you get started, we’ve selected a few @cyclonedx/bom examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sonatype-nexus-community / auditjs / src / Munchers / NpmList.ts View on Github external
return new Promise((resolve, reject) => {
      // create bom from node-managed dependencies, cyclonedx uses read-installed on the backend
      cyclonedx__bom.createbom("1.1", true, process.cwd(), { dev: this.devDependencies }, (err: any, out: any) => {
        if (err) {
          reject(err);
        }
        resolve(out);
      });
    });
  }

@cyclonedx/bom

Meta-package for known CycloneDX Software Bill of Materials (SBOM) generators

Apache-2.0
Latest version published 6 months ago

Package Health Score

76 / 100
Full package analysis

Popular @cyclonedx/bom functions

Similar packages