Permalink
Browse files

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

  • Loading branch information...
1 parent 8e2683c commit 2d89c2b157647069f7919602c0b2dcf900594d6b @substack committed Jun 14, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 examples/all_docs.js
  2. +2 −2 readme.markdown
@@ -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
@@ -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!

0 comments on commit 2d89c2b

Please sign in to comment.