Skip to content

genui-voltron/version-badge

 
 

Repository files navigation

version-badge version badge

Display a version badge.

What?

Designed to be put right next to your project title:

# chalk <sup>![version badge](https://v.egoist.moe/npm/chalk.svg)</sup>

See the title of this README to get the idea :)

Of course you can link the svg to anywhere like the npm page:

# chalk <sup>[![version badge](https://v.egoist.moe/npm/chalk.svg)](https://npmjs.com/package/chalk)</sup>

Note: To make this service keep working, you can donate to support my work.

Usage

npm

GET /npm/:name.svg

Query:

  • tag: Default latest. Release tag, eg: beta

Examples:

github

Directly get the version from a file that's hosted on GitHub:

GET /gh/:owner/:repo.svg

Query:

  • file: Default package.json
  • field: Default version
  • branch: Default master

Examples:

Prior Art

I made this service because following one does not support npm (directly) and mono repos.

License

MIT © EGOIST

About

Display a version badge.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.0%
  • Dockerfile 6.0%