[Pkg-javascript-commits] [node-lcov-parse] 37/45: add lcov-parse bin

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


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

rouca pushed a commit to branch master
in repository node-lcov-parse.

commit 0e87f5590dbba07f8797d3860403533abd1b0cdb
Author: Daniel Howe <dhowe at swipeclock.com>
Date:   Thu Jun 8 10:59:40 2017 -0600

    add lcov-parse bin
---
 .gitignore   |  1 +
 bin/cli.js   | 11 +++++++++++
 package.json |  1 +
 3 files changed, 13 insertions(+)

diff --git a/.gitignore b/.gitignore
index b7e4d7c..b9983a3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 node_modules
 *.swp
 coverage
+.idea
diff --git a/bin/cli.js b/bin/cli.js
new file mode 100755
index 0000000..cc36d58
--- /dev/null
+++ b/bin/cli.js
@@ -0,0 +1,11 @@
+#!/usr/bin/env node
+var lcov = require('../lib/index.js');
+var file = process.argv[2];
+
+lcov(file, function(err, data) {
+    if (err) {
+      return console.error(err)
+    }
+
+    console.log(JSON.stringify(data));
+});
diff --git a/package.json b/package.json
index cd3c9fd..7ddc614 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,7 @@
     "Alan Gutierrez <alan at prettyrobots.com>",
     "Gerard Escalante <gerard at saygo.ca>"
   ],
+  "bin" : { "lcov-parse" : "./bin/cli.js" },
   "bugs": {
     "url": "http://github.com/davglass/lcov-parse/issues"
   },

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



More information about the Pkg-javascript-commits mailing list