Socket
Socket
Sign inDemoInstall

badgen

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

badgen - npm Package Compare versions

Comparing version 0.2.2 to 0.3.0

2

lib/color-presets.js

@@ -10,3 +10,3 @@ module.exports = {

grey: '999',
black: '000'
cyan: '4BA'
}
{
"name": "badgen",
"version": "0.2.2",
"version": "0.3.0",
"description": "Hand-crafted badge generator.",

@@ -5,0 +5,0 @@ "author": "Amio <amio.cn@gmail.com>",

@@ -18,8 +18,20 @@ # badgen [![npm-version][npm-badge]][npm-link] [![install size][pp-badge]][pp-link]

const svgString = badgen({
subject: 'npm',
status: 'v1.2.3',
color: 'blue'
subject: 'npm', // <Text>
status: 'v1.2.3', // <Text>
color: 'blue' // <Color RGB> or <Color Name>
})
```
Available color names:
![](https://badgen.now.sh/badge/color/green/green)
![](https://badgen.now.sh/badge/color/yellow/yellow)
![](https://badgen.now.sh/badge/color/orange/orange)
![](https://badgen.now.sh/badge/color/red/red)
![](https://badgen.now.sh/badge/color/pink/pink)
![](https://badgen.now.sh/badge/color/purple/purple)
![](https://badgen.now.sh/badge/color/blue/blue)
![](https://badgen.now.sh/badge/color/cyan/cyan)
![](https://badgen.now.sh/badge/color/grey/grey)
### Badge Service

@@ -26,0 +38,0 @@

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