badge-generator icon indicating copy to clipboard operation
badge-generator copied to clipboard

Handle latest in NPM package badge

Open MichaelCurrin opened this issue 5 years ago • 4 comments

Relates to #19 but also existing badges

e.g. target: https://www.npmjs.com/package/vue

MichaelCurrin avatar May 08 '20 09:05 MichaelCurrin

Fixed and dynamic badges

MichaelCurrin avatar Jun 01 '20 11:06 MichaelCurrin

[![Made with Vue](https://img.shields.io/github/package-json/dependency-version/MichaelCurrin/vue-js-quickstart/vue)](https://www.npmjs.com/package/vue)

Made with Vue

Handle versioned

And latest - use@latest in the npm package shield or just type latest in a plain badge?

and not locked. That can also be static badge which links to NPM but does not use the package file

MichaelCurrin avatar Sep 14 '20 11:09 MichaelCurrin

Getting latest from NPM and showing the version. This makes sense where you have the latest version your HTML and not a locked package.

[![Made with latest Docsify](https://img.shields.io/npm/v/docsify?label=docsify)](https://docsify.js.org/)

Made with latest Docsify

Perhaps latest as a label is more useful than the actual number.

MichaelCurrin avatar Sep 15 '20 11:09 MichaelCurrin

Even with #19, the latest option without using package file can help.

Maybe literal foo - latest

Or point to NPM and it will show you the version in your docs.

You could also just make a static badge as foo - 1.X - but on the Package page so you get the benefit of external NPM registry link.

MichaelCurrin avatar Nov 04 '20 11:11 MichaelCurrin