Postinstall is code execution
JavaScript package managers support lifecycle hooks such as preinstall, install and postinstall. They are useful for legitimate build steps. They are also a direct path for a malicious package to run code during install, before the developer has opened the project.


