cdx-proto
/
1.0.1
cdx-proto 1.0.1
Install from the command line:
Learn more about npm packages
$ npm install @appthreat/cdx-proto@1.0.1
Install via package.json:
"@appthreat/cdx-proto": "1.0.1"
About this version
Runtime library to serialize/deserialize CycloneDX BOM with protocol buffers. The project was generated using protoc-gen-es from the official proto specification.
import { Bom } from "@appthreat/cdx-proto";
bomObject
.fromJsonString(bomJson, {
ignoreUnknownFields: true,
})
.toBinary({ writeUnknownFields: true });
const bomObject = new Bom().fromBinary(readFileSync(binFile), {
readUnknownFields: true,
});
Apache-2.0