An open API service indexing awesome lists of open source software.

https://github.com/n4bb12/verdaccio-npm-urls

📦⚓ Adds npm URLs to Verdaccio
https://github.com/n4bb12/verdaccio-npm-urls

npm registry urls verdaccio

Last synced: 6 months ago
JSON representation

📦⚓ Adds npm URLs to Verdaccio

Awesome Lists containing this project

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](https://raw.githubusercontent.com/release-it/release-it/master/docs/assets/release-it.gif) 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:

```yml
middlewares:
npm-urls:
enabled: true
```