through2-linewriter

0.0.1 • Public • Published

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"

Package Sidebar

Install

npm i through2-linewriter

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • madd512