verdaccio-npm-urls

<h1 align="center"> 📦⚓ URL Plugin for Verdaccio </h1>

Usage no npm install needed!

<script type="module">
  import verdaccioNpmUrls from 'https://cdn.skypack.dev/verdaccio-npm-urls';
</script>

README

📦⚓ URL Plugin for Verdaccio

Adds npm URLs to Verdaccio – https://www.verdaccio.org

Version License Issues CircleCI Dependencies

About

Verdaccio has slightly different URLs compared to NPM. For example it has a different package detail page:

NPM /package/my-package
Verdaccio 3 /#/detail/my-package
Verdaccio 4 /-/web/detail/my-package

To improve compatibility with existing tools, this plugin adds the routes used by NPM to Verdaccio.

As an example, release-it prints the package URL after successful publishing, but the link is incorrect for Verdaccio by default.

Compatibility

  • Verdaccio 3 and 4
  • Node >=10

List of additional URLs

| | |-| | /package/:name |

Install

$ npm install verdaccio-npm-urls

Configuration

Merge the below options with your existing Verdaccio configuration:

middlewares:
  npm-urls:
    enabled: true