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.4.3 to 2.4.4

4

lib/index.js
const calcWidth = require('./calc-text-width.js').Verdana110
const colorPresets = require('./color-presets.js')
const sanitize = str => str.replace(/\u0026/g, '&').replace(/\u003C/g, '<')

@@ -18,2 +19,5 @@ module.exports = ({ subject, status, color, style, icon, iconWidth = 13 }) => {

subject = sanitize(subject)
status = sanitize(status)
if (style === 'flat') {

@@ -20,0 +24,0 @@ return `<svg width="${width / 10}" height="20" viewBox="0 0 ${width} 200" xmlns="http://www.w3.org/2000/svg"${xlink}>

4

package.json
{
"name": "badgen",
"version": "2.4.3",
"version": "2.4.4",
"description": "Fast svg badge generator.",

@@ -20,3 +20,3 @@ "repository": "amio/badgen",

"serve-marked": "0.3.3",
"standard": "^11.0.1",
"standard": "^12.0.0",
"tap": "^12.0.1"

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