nuǝW pǝuoᴉʇᴉsoԀ ʎlǝʌᴉʇɐƃǝN
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    avro-schemapublic

    node-avro

    Verify that JSON objects match schemas & encode them to AVRO binary.

        var schema = new require('avro-schema').Schema();
        schema.load("myfile.avsc");
        // All types from myfile.avsc are available.
        schema.load("another.avsc");
        // Verifies that object o matches the schema from another.avsc
        schema.verify(o);
        // Verifies that object o matches a particular type name.
        schema.verify(o, 'MyFileType');
        // Now encode it to avro binary format.
        var buffer = schema.encode(o);
    

    Keywords

    none

    install

    npm i avro-schema

    Downloadsweekly downloads

    10

    version

    0.0.3

    license

    none

    last publish

    collaborators

    • avatar