Identify potentially malicious npm scripts in a project.
Overview
This project is a Node.js CLI tool to identify which of a project's existing dependencies are utilising npm lifecycle scripts, which could be malicious.
The currently configured npm scripts the tool will identify are:
preinstall, postintall, preuninstall, postuninstall
Note: This project is to educate, so should not be used as a complete npm security solution.
Installation
# install globally, using npm$ npm install npm-viewscripts -g# Run the cli on a project$ cd my-node-project$ npm install$ npm-viewscripts