summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/byline/README.md
diff options
context:
space:
mode:
authorclaudiahdz <cghr1990@gmail.com>2019-11-18 21:01:39 +0200
committerMyles Borins <mylesborins@google.com>2019-11-20 19:16:47 -0500
commita7c7c703aff362f06ef5d49451a0f79fd289910f (patch)
tree48f9d01b32d55d420f229c4889a5a61178419223 /deps/npm/node_modules/byline/README.md
parenta30a9f8193ddd61dfadc2d5d79784b682027b319 (diff)
downloadandroid-node-v8-a7c7c703aff362f06ef5d49451a0f79fd289910f.tar.gz
android-node-v8-a7c7c703aff362f06ef5d49451a0f79fd289910f.tar.bz2
android-node-v8-a7c7c703aff362f06ef5d49451a0f79fd289910f.zip
deps: upgrade npm to 6.13.1
PR-URL: https://github.com/nodejs/node/pull/30533 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
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.