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

coverbadge

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coverbadge

Create a coverage badge without any service provider.

  • 0.5.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
174
decreased by-34.83%
Maintainers
1
Weekly downloads
 
Created
Source

coverbadge

Create a coverage badge without any service provider.

CircleCI

See it in action

coverage

💯 Coverage increased (+1.81%) to 100%.

Installation

yarn add -D coverbadge
# OR
npm install --save-dev coverbadge

Usage

cat coverage/lcov.info | coverbadge [-o <outputPath>]

-o, --out-file

Specify output path to save the badge image. Defaults to badge.svg under your project root.

-o coverage/badge.svg will output the image under your coverage folder.

If you want it to calculate the difference between current and last coverage, you should not delete the old svg path for every build. If you put it in coverage folder and your script remove the folder for every test, you will have to copy the image before removing it, and paste it back to folder immediately after tests and before running this program.

Author

Kai Hao

License

MIT

FAQs

Package last updated on 11 Jun 2017

Did you know?

Socket

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.

Install

Related posts

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