csv-append-stream
v0.0.1
Published
Append a bunch of CSV streams into a single stream making sure the header is only at the top.
Downloads
25
Readme
csv-append-stream
Appends an array of streams into a single stream.
Assumes streams of CSV data where the first row is a header or any other type of data where you want to keep the first row of the first stream, but remove it from all subsequent streams.
Order is maintained.
Install
npm i csv-append-stream
Enjoy
const appendStreams = require('csv-append-stream');
const fs = require('fs');
const streams = [];
streams.push(fs.createReadStream('./some.csv'));
streams.push(fs.createReadStream('./another.csv'));
appendStreams(streams).pipe(process.stdout);