npm License

Display the license of any npm package.

Show the license specified in a package's package.json.

GET/npm/license/:package.svg

Path Parameters

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

URL format

/npm/license/{package}.svg

Examples

![license](https://shieldcn.dev/npm/license/react.svg)
![license](https://shieldcn.dev/npm/license/vue.svg)
![license](https://shieldcn.dev/npm/license/lodash.svg)

Styling examples

<!-- Ghost variant (subtle) -->
![license](https://shieldcn.dev/npm/license/react.svg?variant=ghost)

<!-- Outline variant -->
![license](https://shieldcn.dev/npm/license/react.svg?variant=outline)

<!-- Green theme -->
![license](https://shieldcn.dev/npm/license/react.svg?theme=green)

Data source

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