Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Fast handcraft svg badge generator.

License

NotificationsYou must be signed in to change notification settings

jacobmllr95/badgen

 
 

Repository files navigation

npm versionCoverage StatusInstall sizeLicense

Fast handcraft svg badge generator. Used onbadgen.net.

Usage

npm install badgen

constbadgen=require('badgen')constsvgString=badgen({subject:'npm',// <Text>status:'v1.2.3',// <Text>color:'blue',// <Color RGB> or <Color Name>, optionalstyle:'flat',// 'flat' or undefined, optionalemoji:true,// Support emoji in text, optionalicon:'data:image/svg+xml;base64,PHN2Zy...',// Use icon, optionaliconWidth:13// Use this if icon is not square.})

Available color names:

Benchmarks

npm run bench on my iMac5K(Late 2014), 3.5G i5, with Node.js 10.5.0:

[classic] style, long params x 742,904 ops/sec ±0.92% (88 runs sampled)[classic] style, full params x 998,716 ops/sec ±0.78% (93 runs sampled)   [flat] style, long params x 618,005 ops/sec ±0.77% (92 runs sampled)   [flat] style, full params x 677,415 ops/sec ±0.67% (93 runs sampled)[classic] style, with emoji  x 502,203 ops/sec ±2.11% (91 runs sampled)[classic] style, with icon   x 844,518 ops/sec ±1.10% (94 runs sampled)

About

Fast handcraft svg badge generator.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript100.0%

[8]ページ先頭

©2009-2025 Movatter.jp