[Pkg-javascript-commits] [node-jsonstream] 03/214: Fix readme github specific markdown
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 1 12:58:31 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 e11d5fc5444e25b7c72888c3118c8e1c9fe23bf0
Author: Florent Jaby <florent.jaby at gmail.com>
Date: Fri Sep 23 14:08:13 2011 +0300
Fix readme github specific markdown
---
readme.markdown | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/readme.markdown b/readme.markdown
index e08a023..80982f7 100644
--- a/readme.markdown
+++ b/readme.markdown
@@ -5,7 +5,8 @@ streaming JSON.parse and stringify
## example
in node v0.4.x
-```js
+
+```javascript
var request = require('request')
, JSONStream = require('JSONStream')
@@ -13,10 +14,13 @@ var request = require('request')
var parser = JSONStream.parse(['rows', /./]) //emit parts that match this path (any element of the rows array)
, req = request({url: 'http://isaacs.couchone.com/registry/_all_docs'})
+
```
+
in node 0.4.x
-``` js
+
+```javascript
req.pipe(parser)
parser.pipe(es.log(''))
@@ -25,7 +29,8 @@ parser.pipe(es.log(''))
in node v0.5.x
-```js
+
+```javascript
req.pipe(parser).pipe(es.log(''))
```
--
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