https://github.com/faradayio/through2-linewriter
Opposite of a line reader. Appends a newline to every chunk pushed through the stream. Uses through2
https://github.com/faradayio/through2-linewriter
Last synced: about 1 month ago
JSON representation
Opposite of a line reader. Appends a newline to every chunk pushed through the stream. Uses through2
- Host: GitHub
- URL: https://github.com/faradayio/through2-linewriter
- Owner: faradayio
- License: mit
- Created: 2015-01-23T15:24:42.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-23T15:55:32.000Z (over 11 years ago)
- Last Synced: 2025-02-28T12:13:52.610Z (over 1 year ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 13
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# through2-linewriter
Opposite of a line reader. Appends a newline to every chunk pushed through the stream. Uses through2
## Installation
```console
npm install through2-linewriter
```
or
```console
npm install --save through2-linewriter
```
## Usage
```javascript
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"
```