[Pkg-javascript-commits] [node-lcov-parse] 02/45: Added License and README files
Bastien Roucariès
rouca at moszumanska.debian.org
Wed Sep 6 09:46:15 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 6a364a08044c8a6818e550991b3cdae2fd22250f
Author: Dav Glass <davglass at gmail.com>
Date: Tue Jul 10 10:50:22 2012 -0500
Added License and README files
---
LICENSE | 30 ++++++++++++++++++++++++++
README.md | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 103 insertions(+)
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..5388f19
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,30 @@
+Software License Agreement (BSD License)
+
+Copyright (c) 2012, Dav Glass <davglass at gmail.com>.
+All rights reserved.
+
+Redistribution and use of this software in source and binary forms, with or without modification, are
+permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the
+ following disclaimer.
+
+* Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the
+ following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+* The name of Dav Glass may not be used to endorse or promote products
+ derived from this software without specific prior
+ written permission of Dav Glass.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
+TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..3489a98
--- /dev/null
+++ b/README.md
@@ -0,0 +1,73 @@
+## LCOV file parser
+
+Simple LCOV file parser
+
+## Installation
+
+ npm install lcov-parser
+
+
+## Usage
+
+ var parse = require('lcov-parser');
+
+ parse('./path/to/file.info', function(err, data) {
+ //process the data here
+ });
+
+## Formatting
+
+Using this as a guide: http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php
+
+It will return JSON like this:
+
+```
+ {
+ "title": "Test #1",
+ "file": "anim-base/anim-base-coverage.js",
+ "functions": {
+ "hit": 23,
+ "found": 29,
+ "details": [
+ {
+ "name": "(anonymous 1)",
+ "line": 7,
+ "hit": 6
+ },
+ {
+ "name": "(anonymous 2)",
+ "line": 620,
+ "hit": 225
+ },
+ {
+ "name": "_end",
+ "line": 516,
+ "hit": 228
+ }
+ ]
+ }
+ "lines": {
+ "found": 181,
+ "hit": 143,
+ "details": [
+ {
+ "line": 7,
+ "hit": 6
+ },
+ {
+ "line": 29,
+ "hit": 6
+ }
+ ]
+ }
+}
+```
+
+## Tests
+
+ npm install && npm test
+
+
+## Build Status
+
+[![Build Status](https://secure.travis-ci.org/davglass/lcov-parser.png?branch=master)](http://travis-ci.org/davglass/lcov-parser)
--
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