Skip to content

egoist/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://version-badge.egoist.sh/npm/chalk)</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](version-badge.egoist.sh/npm/chalk)](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

Query:

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

Examples:

github

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

GET /github/:owner/:repo
Alias /gh/:owner/:repo

Query:

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

Examples:

rust crate

GET /crate/:name

Examples:

text

GET /text?text=random_text

Examples:

Prior Art

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

License

MIT © EGOIST

Releases

No releases published

Sponsor this project

 

Packages

No packages published