Novice, Practiced, Mastered
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

aline

0.0.8 • Public • Published

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

Install

npm i aline

DownloadsWeekly Downloads

0

Version

0.0.8

License

MIT

Unpacked Size

5.16 kB

Total Files

6

Last publish

Collaborators

  • avatar