[Pkg-javascript-commits] [node-deps-sort] 02/79: bin script

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


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

rouca pushed a commit to branch master
in repository node-deps-sort.

commit 65b8d6b72e72832116b267d89cd23a93bd5a3c71
Author: James Halliday <mail at substack.net>
Date:   Mon Jul 8 22:57:21 2013 -0700

    bin script
---
 bin/cmd.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/bin/cmd.js b/bin/cmd.js
new file mode 100755
index 0000000..9ba249a
--- /dev/null
+++ b/bin/cmd.js
@@ -0,0 +1,8 @@
+#!/usr/bin/env node
+
+var sort = require('../')();
+var JSONStream = require('JSONStream');
+var parse = JSONStream.parse([ true ]);
+var stringify = JSONStream.stringify();
+
+process.stdin.pipe(parse).pipe(sort).pipe(stringify).pipe(process.stdout);

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



More information about the Pkg-javascript-commits mailing list