AppThreat / cdx-proto

Runtime library to serialize/deserialize CycloneDX BOM with protocol buffers

Home Page:https://appthreat.github.io/cdx-proto/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Runtime library to serialize/deserialize CycloneDX BOM with protocol buffers

https://appthreat.github.io/cdx-proto/

License:Apache License 2.0


Languages

Language:TypeScript 100.0%