Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

replace "/./" with "true" in the examples

  • Loading branch information...
commit 2d89c2b157647069f7919602c0b2dcf900594d6b 1 parent 8e2683c
@substack substack authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  examples/all_docs.js
  2. +2 −2 readme.markdown
View
2  examples/all_docs.js
@@ -2,7 +2,7 @@ var request = require('request')
, JSONStream = require('JSONStream')
, es = require('event-stream')
-var parser = JSONStream.parse(['rows', /./]) //emit parts that match this path (any element of the rows array)
+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)
View
4 readme.markdown
@@ -10,7 +10,7 @@ var request = require('request')
, JSONStream = require('JSONStream')
, es = require('event-stream')
-var parser = JSONStream.parse(['rows', /./])
+var parser = JSONStream.parse(['rows', true])
, req = request({url: 'http://isaacs.couchone.com/registry/_all_docs'})
, logger = es.mapSync(function (data) {
console.error(data)
@@ -82,7 +82,7 @@ we are probably most interested in the `rows.*.docs`
create a `Stream` that parses the documents from the feed like this:
``` js
-JSONStream.parse(['rows', /./, 'doc']) //rows, ANYTHING, doc
+JSONStream.parse(['rows', true, 'doc']) //rows, ANYTHING, doc
```
awesome!
Please sign in to comment.
Something went wrong with that request. Please try again.