1.0.1 • Published 4 years ago

verdaccio-npm-urls v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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