0.0.1 • Published 9 years ago

through2-linewriter v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

through2-linewriter

Opposite of a line reader. Appends a newline to every chunk pushed through the stream. Uses through2

Installation

npm install through2-linewriter

or

npm install --save through2-linewriter

Usage

var linewriter = require('through2-linewriter');

var writer = linewriter();

writer.pipe(process.stdout);

writer.write('Hello, World!'); //writes "Hello, World!\n"
writer.write('This goes on the next line'); //writes "This goes on the next line\n"