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.
yarn-lock-fix
Advanced tools
Update yarn.lock whenever package.json changes
When you want to lock your deps, you may want to run yarn install
with --frozen-lockfile
.
This package is used to keep yarn.lock up-to-date and prevent the command above to fail.
The command should run on the pre-commit hook, it will update and stage the yarn.lock
file if package.json
is staged.
There's no need to install yarn-lock-fix, you can use it with npx.
Yarn-lock-fix is designed to work with npx and husky.
Use husky to the add the command to your pre-commit hook:
yarn husky add .husky/pre-commit "npx yarn-lock-fix"
Would like to help make this package better? Please take a look at the contributing guidelines for a detailed explanation on how you can contribute.
I'd like thank my daily coffee!
FAQs
Update yarn.lock whenever package.json changes
We found that yarn-lock-fix 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.