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

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.5 to 2.5.0

badgen.min.js

9

package.json
{
"name": "badgen",
"version": "2.4.5",
"version": "2.5.0",
"description": "Fast svg badge generator.",

@@ -15,3 +15,5 @@ "repository": "amio/badgen",

"pretest": "npm run lint",
"test": "tap test/*.spec.js --reporter spec --coverage"
"test": "tap test/*.spec.js --reporter spec --coverage",
"build": "lyo -o badgen.min.js",
"prepublishOnly": "npm run build"
},

@@ -22,5 +24,6 @@ "devDependencies": {

"standard": "^12.0.0",
"tap": "^12.0.1"
"tap": "^12.0.1",
"lyo": "latest"
},
"dependencies": {}
}

@@ -26,3 +26,3 @@ # badgen

style: 'flat', // 'flat' or undefined, optional
icon: 'data:image/svg+xml;base64,PHN2Zy...', // Use icon, optional
icon: 'data:image/svg+xml;base64,...', // Use icon, optional
iconWidth: 13 // Use this if icon is not square.

@@ -45,2 +45,11 @@ })

### In browser
```html
<script src="https://cdn.jsdelivr.net/npm/badgen/badgen.min.js"></script>
<script>
var svgString = badgen({ /*...*/ })
</script>
```
## Benchmarks

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