Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why npm packages stored via Artifactory have '-' (dash) in their path?

After setting up a remote repository for NPM and having successfully retrieved the dependencies via Artifactory, I saw that all NPM packages are stored with an intermediate dash '-' in their path, such as :

http://host:8081/artifactory/npm-remote-cache/abbrev/-/abbrev-1.0.7.tgz

It's also the same for the published version to a local npm repository. Both repositories are using the npm-default layout.

No big deal there, but does anyone know why is this dash here in the middle ?

Thanks in advance !

like image 848
Tibo Avatar asked Dec 23 '15 15:12

Tibo


1 Answers

This is done in order to follow the layout used by the public NPM registry.
For example, in the case of the package you mentioned the public URL would be - http://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz

like image 59
Dror Bereznitsky Avatar answered Oct 23 '22 09:10

Dror Bereznitsky