
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Request that users use npm
instead of yarn
.
If run from yarn
instead of npm
, the process will exit with error code 1
and print an error message.
npm install --save-dev ban-yarn
For example, in your package.json
:
{
"scripts": {
"preinstall": "ban-yarn"
}
}
Or if you have npx
:
{
"scripts": {
"preinstall": "npx ban-yarn"
}
}
You may provide a custom message via the -m
flag:
{
"scripts": {
"preinstall": "npx ban-yarn -m 'Please use npm!'"
}
}
Or, you may also provide a custom message read from a file via the -f
flag:
{
"scripts": {
"preinstall": "npx ban-yarn -f path/to/customMessage.txt"
}
}
You may disable ban-yarn by setting the DISABLE_USE_NPM
environment variable to true
:
{
"scripts": {
"preinstall": "DISABLE_USE_NPM=true npx ban-yarn"
}
}
var useNpm = require('ban-yarn')
useNpm()
// or a custom message
useNpm('You should switch back to npm. Version >=5 is really great.');
Forked from use-yarn.
MIT © Shannon Moeller
FAQs
Request that users use npm instead of yarn.
The npm package ban-yarn receives a total of 0 weekly downloads. As such, ban-yarn popularity was classified as not popular.
We found that ban-yarn 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.