Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/herrmannplatz/npm-dependency-links
🔗 VSCode extension to link your package.json dependecies to npmjs.com
https://github.com/herrmannplatz/npm-dependency-links
npm vscode vscode-extension
Last synced: 2 months ago
JSON representation
🔗 VSCode extension to link your package.json dependecies to npmjs.com
- Host: GitHub
- URL: https://github.com/herrmannplatz/npm-dependency-links
- Owner: herrmannplatz
- Created: 2017-11-05T21:23:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T10:13:35.000Z (over 1 year ago)
- Last Synced: 2024-10-03T07:05:07.729Z (3 months ago)
- Topics: npm, vscode, vscode-extension
- Language: JavaScript
- Homepage:
- Size: 587 KB
- Stars: 21
- Watchers: 2
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# npm-dependency-links
[![](https://vsmarketplacebadge.apphb.com/version/herrmannplatz.npm-dependency-links.svg)](https://marketplace.visualstudio.com/items?itemName=herrmannplatz.npm-dependency-links) [![](https://vsmarketplacebadge.apphb.com/installs/herrmannplatz.npm-dependency-links.svg)](https://marketplace.visualstudio.com/items?itemName=herrmannplatz.npm-dependency-links) [![](https://vsmarketplacebadge.apphb.com/rating/herrmannplatz.npm-dependency-links.svg)](https://marketplace.visualstudio.com/items?itemName=herrmannplatz.npm-dependency-links)
Links the depedencies in your package.json to their npmjs.com profile.
## Features
Visit the npmjs.com profile of your dependencies by simply `CMD/Ctrl+click` on the package name in your package.json.
![link example](images/promo.gif)
## Custom Registry URL
To change the URL, you can set the configuration value in `settings.json` as below:`"npmDependencyLinks.registryUrlPattern": "http://myCustomRegistry/{{pkg}}/package?queryparams"`
Note that `{{pkg}}` is the only part of the pattern that will be set by this extension. E.g., If your pattern is `http://registry.mysite.com/package?name={{pkg}}?version=latest`. If you click on `npm-dependency-links`, then the resulting URL will be `http://registry.mysite.com/package?name=npm-dependency-links?version=latest`
## Custom Registry URL (Legacy)
You can also pass custom registry url. For example, if you are using verdaccio. Default value is `https://www.npmjs.com/package/`.To change the url, you need to set this configuration value in `settings.json`
`"npmDependencyLinks.registryUrl": "http://myCustomRegistry/"`
_Note: Don't forget to put `"/"` in the end._
## Requirements
Visual Studio Code > 1.17.0