Verdaccio middleware plugin to serve svg badges
- firstname.lastname@example.org or higher
npm install --global verdaccio-badger
To enable the plugin you need to add following lines to your configuration file.
middlewares: badger: # Enables the plugin - the only required config parameter enabled: true # path to directory to keep cached badges - to disable set to false or remove key cache: ./cache # base url path used to serve the badges endpoint: /-/badger/ # badges to serve - default no badges are served badges: # minimal test badge '@paddek/verdaccio-badger-test': # if package is not scoped test: would have sufficed # svg filename which renders this badge name: test.svg # whether to use caching for this badge or not (default: true, if cache for badger is enabled) useCache: false # options passed to badge options: prefix: v
By itself verdaccio-badger does not serve any badges. Badges are additional plugins prefixed with
which generate and return badges as SVG.
Installing and creating Badges
See @paddek/verdaccio-badger-test badge.