0.0.8 • Published 4 years ago
aline v0.0.8
node-aline
Align last bytes to newline boundary of stream chunks
Install
NPM
npm install aline
Yarn
yarn add aline
Sample
const Aline = require('aline');
const {Readable} = require('stream');
async function* generate() {
yield 'foo\nba';
yield 'ar\nbaz';
}
const stream = Readable.from(generate()).pipe(new Aline());
stream.on('data', function(chunk) {
console.log(chunk.toString());
});