Socket
Book a DemoInstallSign in
Socket

csv-protobuf-stream

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv-protobuf-stream

csv to protobuf

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

csv-to-protobuf

Encode csv to protobuf

npm install csv-to-protobuf

Usage

var csvProtobuf = require('csv-to-protobuf');
var split = require('binary-split');
var encoder = csvProtobuf();

fs.createReadStream('data.csv').pipe(split()).pipe(encoder).on('data', function(data) {
	console.log('protobuf row:', data);
	console.log('protobuf schema:', encoder.schema);
})

Keywords

protobuf

FAQs

Package last updated on 13 May 2014

Did you know?

Socket

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.

Install

Related posts