[Pkg-javascript-commits] [node-stream-combiner2] 19/41: README.md: Reformat to make code more readable

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 09:57:52 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-stream-combiner2.

commit 3e8a7c58508531281ab6105ed1c694e6efb1cedf
Author: Felix Rabe <felix at rabe.io>
Date:   Mon Jun 9 01:51:44 2014 +0200

    README.md: Reformat to make code more readable
---
 README.md | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/README.md b/README.md
index b427306..014f071 100644
--- a/README.md
+++ b/README.md
@@ -9,19 +9,19 @@ and reads from the last stream.
 
 Listening for 'error' will recieve errors from all streams inside the pipe.
 
-``` js
-  var Combine = require('stream-combiner')
-  var es      = require('event-stream')
-
-  Combine(                         //connect streams together with `pipe`
-    process.openStdin(),              //open stdin
-    es.split(),                       //split stream to break on newlines
-    es.map(function (data, callback) {//turn this async function into a stream
-      callback(null
-        , inspect(JSON.parse(data)))  //render it nicely
-    }),
-    process.stdout                    // pipe it to stdout !
-    )
+```js
+var Combine = require('stream-combiner')
+var es      = require('event-stream')
+
+Combine(                                  // connect streams together with `pipe`
+  process.openStdin(),                    // open stdin
+  es.split(),                             // split stream to break on newlines
+  es.map(function (data, callback) {      // turn this async function into a stream
+    var repr = inspect(JSON.parse(data))  // render it nicely
+    callback(null, repr)
+  }),
+  process.stdout                          // pipe it to stdout !
+)
 ```
 
 ## License

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stream-combiner2.git



More information about the Pkg-javascript-commits mailing list