Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
coverage-diff
Advanced tools
Reports differences between two istanbul JSON code coverage summaries.
newFileCoverageThreshold
, defaults to coverageThreshold
if not passedimport fs from 'fs';
import { diff as coverageDiff } from 'coverage-diff';
const base = JSON.parse(fs.readFileSync('./base-summary.json'));
const head = JSON.parse(fs.readFileSync('./head-summary.json'));
const diff = coverageDiff.diff(base, head);
console.log(diff.diff);
console.log(diff.results);
console.log(diff.regression);
Out:
Ok | File | Lines | Branches | Functions | Statements |
---|---|---|---|---|---|
🔴 | file1 | 80% (+10%) | 14% (-30%) | 3% (+20%) | 20% (-10%) |
✅ | file2 | 20% (+10%) | 8% (-30%) | 2% (-20%) | 5% (-10%) |
FAQs
Reports differences between two istanbul JSON code coverage summaries.
The npm package coverage-diff receives a total of 5,437 weekly downloads. As such, coverage-diff popularity was classified as popular.
We found that coverage-diff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.