npm Version

Display the latest version of any npm package.

Show the current published version of a package.

GET/npm/:package.svg

Path Parameters

required

Unscoped (react) or scoped (@types/react).

![badge](https://shieldcn.dev/npm/react.svg)
badge preview

URL formats

/npm/{package}.svg
/npm/v/{package}.svg
/npm/v/{package}/{tag}.svg

Examples

npm react
Default variant
npm react
Secondary variant
npm react
Branded (npm red)
npm react
Outline variant
npm react
Blue theme
npm react
Custom label

Copy-paste examples

npm version

Default — clean version badge for READMEs

![npm version](https://shieldcn.dev/npm/react.svg)
npm version

Branded — npm's official red

![npm version](https://shieldcn.dev/npm/react.svg?variant=branded)
npm version

Scoped package — secondary variant

![npm version](https://shieldcn.dev/npm/@types/react.svg?variant=secondary)

Data source

Uses registry.npmjs.org. No API key required. Cached 1 hour.