Comparing version 2.4.5 to 2.5.0
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64359
8
76
5
2
3