
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
postinstall-prepare
Advanced tools
Yarn runs the `prepare` script after `yarn`, `yarn install` and `yarn add ` but not after `yarn remove `. If you add this package to your project, it will execute your project's `prepare` hook even after a `yarn remove `. This r
Run your app's prepare npm script during this package's postinstall script.
Yarn runs the prepare script after yarn, yarn install and yarn add <package> but not after yarn remove <package>. If you add this package to your project, it will execute your project's prepare hook even after a yarn remove <package>. This requires your prepare script to be idempotent, becase it will be run twice for yarn, yarn install, and yarn add <package>
2.0.0
Moving fast and breaking things. It turns out yarn doesn't run the prepare hook after removing a package, so we use patch-package to patch a local version of yarn. I'm not proud of this. Probably wouldn't have released this in the first place if I had known that yarn didn't have all the right hooks. Oh well. Now I have a reason to contribute to Yarn I guess.
FAQs
Yarn runs the `prepare` script after `yarn`, `yarn install` and `yarn add ` but not after `yarn remove `. If you add this package to your project, it will execute your project's `prepare` hook even after a `yarn remove `. This r
The npm package postinstall-prepare receives a total of 15,632 weekly downloads. As such, postinstall-prepare popularity was classified as popular.
We found that postinstall-prepare 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.