Skip to content

seelio/node-avro-io

 
 

Repository files navigation

Node Avro IO

Build Status

Implements the avro spec

This status of this repository is initial release

npm install node-avro-io

or

npm install git://github.com/seelio/node-avro-io.git

Serializing data to an avro binary file

var avro = require('node-avro-io').DataFile.AvroFile();

var schema = {type: 'string'};
var writer = avro.open('test.avro', schema, { flags: 'w', codec: 'deflate' });

writer.write('The quick brown fox jumped over the lazy dogs');
writer.write('Another entry');
writer.end();

Deserializing data to from avro binary file

var avro = require('node-avro-io').DataFile.AvroFile();

var reader = avro.open('test.avro', null, { flags: 'r' });
reader.on('readable', function(data) {
    console.log(reader.read());
});

...lots more to follow...

For now see test/*

TODO:

  • Avro RPC
  • Support for Trevni (column major data serialization)

About

Node JS Avro implementation

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.2%
  • Makefile 0.8%