How to use the avsc.infer 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 mtth / avsc / js / infer.js View on Github external
function infer(str, cb) {
  var inferredSchema = avro.infer(JSON.parse(str));
  cb(JSON.parse(inferredSchema.getSchema({exportAttrs: true})));
}

avsc

Avro for JavaScript

MIT
Latest version published 1 year ago

Package Health Score

69 / 100
Full package analysis