Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
node-avro-io
Advanced tools
This will allow you to encode / decode avro binary format to / from json format, it supports both deflate and snappy compressions and supports node streams
Implements the avro spec
This status of this repository is initial release
npm install node-avro-io
or
npm install git://github.com/jamesbrucepower/node-avro-io.git
Serializing data to an avro binary file
var fs = require('fs');
var DataFile = require('node-avro-io').DataFile;
var avro = DataFile.AvroFile();
var fileStream = fs.createFileStream('test.avro');
var schema = 'string';
var writer = avro.open("test.avro", schema, { flags: 'w', codec: 'deflate' });
writer
.pipe(fileStream)
.append("The quick brown fox jumped over the lazy dogs")
.append("Another entry")
.end();
Deserializing data to from avro binary file
var DataFile = require("node-avro-io").DataFile;
var avro = DataFile.AvroFile();
var reader = avro.open('test.avro', { flags: 'r' });
reader.on('data', function(data) {
console.log(data);
});
...lots more to follow...
For now see test/*
TODO:
FAQs
This will allow you to encode / decode avro binary format to / from json format, it supports both deflate and snappy compressions and supports node streams
We found that node-avro-io demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.