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.2.0 to 2.2.1

2

lib/index.js

@@ -9,3 +9,3 @@ const calcWidth = require('./calc-text-width.js').Verdana11

const iconSpanWidth = icon ? (subject.length ? iconWidth + 4 : iconWidth - 1.5) : 0
const iconSpanWidth = icon ? (subject.length ? iconWidth + 4 : iconWidth - 2) : 0
const stTextWidth = calcWidth(status, emoji)

@@ -12,0 +12,0 @@ const sbRectWidth = calcWidth(subject, emoji) + 10 + iconSpanWidth

{
"name": "badgen",
"version": "2.2.0",
"version": "2.2.1",
"description": "Fast svg badge generator.",

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

@@ -28,3 +28,4 @@ # badgen

emoji: true, // Support emoji in text, optional
icon: 'data:image/svg+xml;base64,PHN2Zy...' // Use icon, optional
icon: 'data:image/svg+xml;base64,PHN2Zy...', // Use icon, optional
iconWidth: 13 // Use this if icon is not square.
})

@@ -54,6 +55,8 @@ ```

```bash
[classic] style, long params x 1,071,083 ops/sec ±0.82% (89 runs sampled)
[classic] style, full params x 1,332,181 ops/sec ±0.80% (92 runs sampled)
[flat] style, long params x 1,145,825 ops/sec ±0.73% (94 runs sampled)
[flat] style, full params x 1,416,453 ops/sec ±0.69% (91 runs sampled)
[classic] style, long params x 742,904 ops/sec ±0.92% (88 runs sampled)
[classic] style, full params x 998,716 ops/sec ±0.78% (93 runs sampled)
[flat] style, long params x 618,005 ops/sec ±0.77% (92 runs sampled)
[flat] style, full params x 677,415 ops/sec ±0.67% (93 runs sampled)
[classic] style, with emoji x 502,203 ops/sec ±2.11% (91 runs sampled)
[classic] style, with icon x 844,518 ops/sec ±1.10% (94 runs sampled)
```

@@ -60,0 +63,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