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 2 years ago

Package Health Score

76 / 100
Full package analysis