Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@appthreat/cdx-proto

AppThreat240.1kApache-2.01.1.0TypeScript support: included

Library to serialize/deserialize CycloneDX BOM with protocol buffers

cyclonedx, sbom, supply-chain, protobuf, protobom

readme

cdx-proto

Runtime library to serialize/deserialize CycloneDX BOM with protocol buffers. The project was generated using protoc-gen-es from the official proto specification.

Sample usage

import { Bom } from "@appthreat/cdx-proto";

bomObject
  .fromJsonString(bomJson, {
    ignoreUnknownFields: true,
  })
  .toBinary({ writeUnknownFields: true });

const bomObject = new Bom().fromBinary(readFileSync(binFile), {
  readUnknownFields: true,
});

License

Apache-2.0