gemini-coverage
Advanced tools
Comparing version 0.0.3 to 0.1.0
'use strict'; | ||
var PATH = require('path'), | ||
Scanner = require('./scanner'), | ||
mkReport = require('./'), | ||
reporters = require('./reporters'); | ||
REPORTERS = { | ||
std: './reporters/std-reporter', | ||
number: './reporters/number-reporter', | ||
html: './reporters/html-reporter' | ||
}; | ||
module.exports = require('coa').Cmd() | ||
@@ -27,11 +22,5 @@ .name(PATH.basename(process.argv[1])) | ||
.opt() | ||
.name('reporter').title('Choose the reporter: (' + Object.keys(REPORTERS).join(', ') +')') | ||
.name('reporter').title('Choose the reporter: (' + reporters.list().join(', ') +')') | ||
.short('r').long('reporter') | ||
.val(function(val) { | ||
if(!REPORTERS[val]) { | ||
throw new Error('Reporter "' + val + '" not found'); | ||
} | ||
return val; | ||
}) | ||
.def('std') | ||
.def(reporters.default()) | ||
.end() | ||
@@ -51,4 +40,3 @@ .arg() | ||
.act(function(opts, args) { | ||
var Reporter = require(REPORTERS[opts.reporter]); | ||
return new Scanner(args.path).resolve(new Reporter()); | ||
return mkReport(args.path, opts.reporter); | ||
}); |
{ | ||
"author": "Tikvach Alexander <unlok@yandex-team.ru>", | ||
"name": "gemini-coverage", | ||
"version": "0.0.3", | ||
"version": "0.1.0", | ||
"repository": { | ||
@@ -34,3 +34,3 @@ "type": "git", | ||
}, | ||
"main": "lib/app", | ||
"main": "lib/index.js", | ||
"bin": { | ||
@@ -37,0 +37,0 @@ "gemini-coverage": "bin/gemini-coverage" |
@@ -21,1 +21,7 @@ # Simple gemini coverage | ||
``` | ||
```js | ||
var mkReport = require('gemini-coverage'); | ||
... | ||
return mkReport(path_to_bem_library, reporter); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
27
22098
21
553
1