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 2.1.0 to 2.1.1

2

lib/calc-text-width.js

@@ -7,3 +7,3 @@ const widthsVerdana11 = require('./widths-verdana-11.json')

const widthTable = charWidthTable.map(w => Math.round(w * SCALE))
widthTable[64] = widthTable[64] + 2 // Slightly increase width of "@" by 0.2px
widthTable[64] = widthTable[64] + 4 // Slightly increase width of "@" by 0.4px

@@ -10,0 +10,0 @@ return function (text, astral) {

{
"name": "badgen",
"version": "2.1.0",
"version": "2.1.1",
"description": "Fast svg badge generator.",

@@ -5,0 +5,0 @@ "repository": "amio/badgen",

@@ -25,4 +25,6 @@ # badgen

status: 'v1.2.3', // <Text>
color: 'blue' // <Color RGB> or <Color Name>, optional
style: 'flat' // 'flat' or undefined, optional
color: 'blue', // <Color RGB> or <Color Name>, optional
style: 'flat', // 'flat' or undefined, optional
emoji: true, // Support emoji in text, optional
icon: 'data:image/svg+xml;base64,PHN2Zy...' // Use icon, optional
})

@@ -29,0 +31,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