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

@collaborne/github-badges

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@collaborne/github-badges

Github SVG badges for repositories

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
71
increased by42%
Maintainers
6
Weekly downloads
 
Created
Source

@collaborne/github-badges

Create SVG badges

Install

npm install --save @collaborne/github-badges

Usage

  • import in JS/TS files
import { createCoverageBadge } from '@collaborne/github-badges'

// Using default params
createCoverageBadge();


// Using different input path for coverage summary:
const inputPath= path.resolve(__dirname, 'my-other-folder', 'coverage-summary.json');

// Using different output file path for coverage badge:
const outputPath = path.resolve(__dirname,'my-other-folder', 'coverage', 'coverage-summary.json');

// Creating coverage badge SVG's(get summary from inputPath, and saved SVG's in the output path)
createCoverageBadge(inputPath, outputPath)



  • as a script in package.json
...

scripts :{
    ...
    "predeploy:coverage-badges": "create-coverage-badges"
    ...
}
...

By default uses for coverage report input: coverage/coverage-summary.json , and outputs created svg's into the same coverage folder.

Flags for input: --i or -inputPath

Flags for output: --o, --d, -outputPath or -dist

License

(c) 2023 Collaborne B.V. All rights reserved.

Keywords

FAQs

Package last updated on 13 Jul 2023

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