diff options
Diffstat (limited to 'deps/npm/node_modules/JSONStream/examples/all_docs.js')
-rw-r--r-- | deps/npm/node_modules/JSONStream/examples/all_docs.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/deps/npm/node_modules/JSONStream/examples/all_docs.js b/deps/npm/node_modules/JSONStream/examples/all_docs.js deleted file mode 100644 index fa87fe52da..0000000000 --- a/deps/npm/node_modules/JSONStream/examples/all_docs.js +++ /dev/null @@ -1,13 +0,0 @@ -var request = require('request') - , JSONStream = require('JSONStream') - , es = require('event-stream') - -var parser = JSONStream.parse(['rows', true]) //emit parts that match this path (any element of the rows array) - , req = request({url: 'http://isaacs.couchone.com/registry/_all_docs'}) - , logger = es.mapSync(function (data) { //create a stream that logs to stderr, - console.error(data) - return data - }) - -req.pipe(parser) -parser.pipe(logger) |