
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
yarn-bin-fix
Advanced tools
Fix for yarn's #760, puts all executables from node_modules into .bin, as npm usually does
Fix for yarn's #760
This does exactly what npm usually does, links all package.json's bin
executables into the top-most node_modules/.bin
(recursively).
Currently, yarn does not do that. So if you have transitive dependencies (dependency of dependency) that has an executable, you will not be able to run it if installing with yarn.
For example, you depend on standard
which depend on eslint
. When using npm, you could just run eslint src
and everything worked. With yarn this will not work.
This is not a perfect solution, but this script will allow you to migrate to yarn more easily. See (#1210)(https://github.com/yarnpkg/yarn/pull/1210).
Install it globally (for ease of access, not necessary).
npm i -g yarn-bin-fix
After installing your module using yarn
, run yarn-bin-fix
from your project's root.
Keep in mind that if you have postinstall
scripts that use transitive dependencies, these will fail until you run this script.
FAQs
Fix for yarn's #760, puts all executables from node_modules into .bin, as npm usually does
The npm package yarn-bin-fix receives a total of 596 weekly downloads. As such, yarn-bin-fix popularity was classified as not popular.
We found that yarn-bin-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.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Company News
Socket is bringing best-in-class reachability analysis into the platform — cutting false positives, accelerating triage, and cementing our place as the leader in software supply chain security.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.