0.0.8 • Published 4 years ago

aline v0.0.8

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

node-aline

Align last bytes to newline boundary of stream chunks

npm.io

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());
});
0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.2

7 years ago

0.0.1

7 years ago