Skip to content
This repository was archived by the owner on Dec 4, 2018. It is now read-only.

Commit 2d89c2b

Browse files
author
James Halliday
committed
replace "/./" with "true" in the examples
1 parent 8e2683c commit 2d89c2b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/all_docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var request = require('request')
22
, JSONStream = require('JSONStream')
33
, es = require('event-stream')
44

5-
var parser = JSONStream.parse(['rows', /./]) //emit parts that match this path (any element of the rows array)
5+
var parser = JSONStream.parse(['rows', true]) //emit parts that match this path (any element of the rows array)
66
, req = request({url: 'http://isaacs.couchone.com/registry/_all_docs'})
77
, logger = es.mapSync(function (data) { //create a stream that logs to stderr,
88
console.error(data)

readme.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var request = require('request')
1010
, JSONStream = require('JSONStream')
1111
, es = require('event-stream')
1212

13-
var parser = JSONStream.parse(['rows', /./])
13+
var parser = JSONStream.parse(['rows', true])
1414
, req = request({url: 'http://isaacs.couchone.com/registry/_all_docs'})
1515
, logger = es.mapSync(function (data) {
1616
console.error(data)
@@ -82,7 +82,7 @@ we are probably most interested in the `rows.*.docs`
8282
create a `Stream` that parses the documents from the feed like this:
8383

8484
``` js
85-
JSONStream.parse(['rows', /./, 'doc']) //rows, ANYTHING, doc
85+
JSONStream.parse(['rows', true, 'doc']) //rows, ANYTHING, doc
8686
```
8787
awesome!
8888

0 commit comments

Comments
 (0)