[Pkg-javascript-commits] [node-jsonstream] 104/214: remove dead code from the examlpe that is been there for 2 years at least!

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 12:58:46 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-jsonstream.

commit 54f9f9c006aecc4be2169af6a98b9287699f1d6d
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Wed Apr 30 14:09:21 2014 +0200

    remove dead code from the examlpe that is been there for 2 years at least!
---
 readme.markdown | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/readme.markdown b/readme.markdown
index 9f5d479..cf5987c 100644
--- a/readme.markdown
+++ b/readme.markdown
@@ -12,19 +12,12 @@ var request = require('request')
   , JSONStream = require('JSONStream')
   , es = require('event-stream')
 
-var parser = JSONStream.parse(['rows', true])
-  , req = request({url: 'http://isaacs.couchone.com/registry/_all_docs'})
-  , logger = es.mapSync(function (data) {
-      console.error(data)
-      return data
-    })
-
-  request({url: 'http://isaacs.couchone.com/registry/_all_docs'})
-    .pipe(JSONStream.parse('rows.*'))
-    .pipe(es.mapSync(function (data) {
-      console.error(data)
-      return data
-    }))
+request({url: 'http://isaacs.couchone.com/registry/_all_docs'})
+  .pipe(JSONStream.parse('rows.*'))
+  .pipe(es.mapSync(function (data) {
+    console.error(data)
+    return data
+  }))
 ```
 
 ## JSONStream.parse(path)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jsonstream.git



More information about the Pkg-javascript-commits mailing list