How to use the avsc.readProtocol function in avsc

To help you get started, we’ve selected a few avsc 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 kafkajs / confluent-schema-registry / src / utils / avdlToAVSC.ts View on Github external
export default (path: any) => {
  cache = {}
  const protocol = avro.readProtocol(fs.readFileSync(path, 'utf8'))

  return merge({ namespace: protocol.namespace }, combine(protocol.types.pop(), protocol.types))
}

avsc

Avro for JavaScript

MIT
Latest version published 2 years ago

Package Health Score

76 / 100
Full package analysis