summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/byline/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/byline/README.md')
-rw-r--r--deps/npm/node_modules/byline/README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/npm/node_modules/byline/README.md b/deps/npm/node_modules/byline/README.md
index f5a0644095..2de1a849e6 100644
--- a/deps/npm/node_modules/byline/README.md
+++ b/deps/npm/node_modules/byline/README.md
@@ -42,11 +42,11 @@ stream.on('data', function(line) {
```
# Standard API
-
+
You just need to add one line to wrap your readable `Stream` with a `LineStream`.
```javascript
-var fs = require('fs'),
+var fs = require('fs'),
byline = require('byline');
var stream = fs.createReadStream('sample.txt');
@@ -74,7 +74,7 @@ stream:
var stream = fs.createReadStream('sample.txt');
stream = byline.createStream(stream);
stream.pipe(fs.createWriteStream('nolines.txt'));
-
+
var input = fs.createReadStream('LICENSE');
var lineStream = byline.createStream();
input.pipe(lineStream);
@@ -84,7 +84,7 @@ lineStream.pipe(output);
```
# Streams2 API
-
+
Node v0.10 added a new streams2 API. This allows the stream to be used in non-flowing mode and is
preferred over the legacy pause() and resume() methods.