forked frombadgen/badgen
- Notifications
You must be signed in to change notification settings - Fork0
thierryc/badgen
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Fast, handcraft, pure JavaScript badge generator.
- ⚡️ Fast (seebenchmarks)
- 🌀 Zero dependency (compare with 11 deps forgh-badges which being used onshields.io)
npm install badgen
constbadgen=require('badgen')constsvgString=badgen({subject:'npm',// <Text>status:'v1.2.3',// <Text>color:'blue'// <Color RGB> or <Color Name>})
Available color names:
npm run bench
on my iMac5K(Late 2014), 3.5G i5, with Node.js 10.5.0:
generate by short params x 1,085,052 ops/sec ±1.03% (83 runs sampled)generate by long params x 1,046,942 ops/sec ±0.61% (93 runs sampled)generate by full params x 1,266,881 ops/sec ±0.76% (91 runs sampled)
About
Fast, handcraft, pure JavaScript badge generator. Running in node & browser.
Resources
Stars
Watchers
Forks
Packages0
No packages published
Languages
- JavaScript100.0%