snyk-protectwhen npm install or yarn install completes.
snyk-protectto run and patch the necessary dependencies, on completion you will see a success message in the output.
@snyk/protectis added as a dependency and a
.snykfile is created which contains the list of patches to apply.
.snykfile contains the details of the patch per individual path to the dependency as it may appear in multiple locations in the
node_modules, for example:
@snyk/protectwill attempt to patch all applicable instances of the vulnerable dependency.