Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
fetch-coverage
Advanced tools
Fetch the code coverage from an open-source GIT repository, using a variety of well-known coverage services
Fetch the code coverage from an open-source GIT repository, using a variety of well-known coverage services.
Currently supports GitHub, Bitbucket and GitLab repositories and checks against Coveralls, Code Climate, Scrutinizer and Codecov.
Feel free to make a PR adding support for another coverage service.
$ npm install fetch-coverage
fetchCoverage(repositoryUrl, options) -> Promise
const fetchCoverage = require('fetch-coverage');
fetchCoverage('git@github.com:IndigoUnited/node-planify.git')
// `coverage` is a number between 0 and 1 or `null` if there's no code coverage
.then((coverage) => console.log('Coverage', coverage));
The repositoryUrl
is any valid cloneable URL.
Available options:
branch
: The target branch (only supported in some services)services
: The services to fetch from, defaults to all servicesgot
: Custom options to be passed to got, defaults to { timeout: 15000 }
badges
: The badges information gathered by detect-readme-badges which might speed up the fetching process$ npm test
$ npm test-cov
to get coverage report
Released under the MIT License.
1.0.3 (2016-09-14)
<a name="1.0.2"></a>
FAQs
Fetch the code coverage from an open-source GIT repository, using a variety of well-known coverage services
The npm package fetch-coverage receives a total of 0 weekly downloads. As such, fetch-coverage popularity was classified as not popular.
We found that fetch-coverage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.