Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gemini-coverage

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gemini-coverage - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0

lib/index.js

22

lib/app.js
'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);
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc