New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

istanbul-coverage-enforcer

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

istanbul-coverage-enforcer - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

17

enforce.js

@@ -14,14 +14,11 @@ #!/usr/bin/env node

program
.command('enforce')
.option('-c, --coverage-path <coverage>', 'The path to coverage JSON file')
.option('-t, --threshold-path <threshold>', 'The path to the threshold JSON file')
.action((cmd) => {
try {
enforce(parseAndTrim(cmd.coveragePath), parseAndTrim(cmd.thresholdPath));
console.log(`[SUCCESS]: Coverage above threshold`.green);
} catch (e) {
console.log(`${e.message}`.red)
}
});
.parse(process.argv);
program.parse(process.argv);
try {
enforce(parseAndTrim(program.coveragePath), parseAndTrim(program.thresholdPath));
console.log(`[SUCCESS]: Coverage above threshold`.green);
} catch (e) {
console.log(`${e.message}`.red)
}
{
"name": "istanbul-coverage-enforcer",
"version": "1.0.4",
"version": "1.0.5",
"description": "A Nodejs package and cli tool to enforce code coverage",

@@ -5,0 +5,0 @@ "main": "index.js",

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