Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
manage-linked-packages
Advanced tools
List and reset NPM and Yarn global linked packages, manually or programmatically in Yarn/NPM scripts.
There is no out-of-the-box way to locate or reset packages that have been linked with NPM link
or Yarn link
.
yarn link
or npm link
to create a global linked packageyarn link
and npm link
won't let you create/override a global linked package, say, if you needed to change folders where PackageA is located, or have a duplicate folder (for valid reasons). You have to yarn unlink
or npm unlink
PackageA first manuallymanage-linked-packages
helps you to manage these packages manually or programmatically in Yarn/NPM scripts.
With NPM:
npm install -g manage-linked-packages
With Yarn:
yarn global add manage-linked-packages
In your terminal or NPM/Yarn script type:
manage-linked-packages [options]
Short Syntax | Long Syntax | Description |
---|---|---|
-m <package-manager> | --package-manager <package-manager> | required: package manager to manage (yarn or npm ) |
-a <manage-action> | --manage-action <manage-action> | required: manage action to take (locate or reset ) |
-n <package-name> | --package-name <package-name> | required: name of global linked yarn/npm package to manage |
-V | --version | output the version number |
-h, --help output usage information |
some-package
:manage-linked-packages -m yarn -a locate -n some-package
This returns a success message with the real path of the linked package, for example:
found: /Users/user1/Projects/some-package
some-package
:manage-linked-packages -m npm -a reset -n some-package
This returns the output of the yarn unlink
or npm unlink
command that is performed in the appropriate global folder.
With NPM:
npm uninstall -g manage-linked-packages
With Yarn:
yarn global remove manage-linked-packages
FAQs
List and reset NPM and Yarn linked packages
The npm package manage-linked-packages receives a total of 30 weekly downloads. As such, manage-linked-packages popularity was classified as not popular.
We found that manage-linked-packages demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.