Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Fast handcraft svg badge generator. Used on badgen.net.
npm install badgen
const badgen = require('badgen')
const svgString = badgen({
subject: 'npm', // <Text>
status: 'v1.2.3', // <Text>
color: 'blue', // <Color RGB> or <Color Name>, optional
style: 'flat', // 'flat' or undefined, optional
icon: 'data:image/svg+xml;base64,...', // Use icon, optional
iconWidth: 13 // Use this if icon is not square.
})
Available color names:
<script src="https://cdn.jsdelivr.net/npm/badgen/badgen.min.js"></script>
<script>
var svgString = badgen({ /*...*/ })
</script>
npm run bench
on my MacBook Pro (Early 2015), 2.7G i5, with Node.js 10.9.0:
[classic] style, long params x 784,111 ops/sec ±1.53% (89 runs sampled)
[classic] style, full params x 1,096,667 ops/sec ±1.37% (90 runs sampled)
[classic] style, with emoji x 1,086,230 ops/sec ±1.85% (92 runs sampled)
[classic] style, with icon x 941,914 ops/sec ±0.41% (93 runs sampled)
[flat] style, long params x 546,447 ops/sec ±0.52% (91 runs sampled)
[flat] style, full params x 612,977 ops/sec ±1.08% (94 runs sampled)
[flat] style, with emoji x 620,193 ops/sec ±0.95% (92 runs sampled)
[flat] style, with icon x 566,848 ops/sec ±0.84% (93 runs sampled)
FAQs
Fast svg badge generator.
The npm package badgen receives a total of 5,480 weekly downloads. As such, badgen popularity was classified as popular.
We found that badgen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.