npm-scanner

How to Set Up npm-scanner

Install Prerequisites

macOS:

brew install jq

Ubuntu/Debian:

sudo apt-get install jq curl unzip

Clone the Repository

git clone https://github.com/virtualian/npm-scanner.git
cd npm-scanner

Initialize Data Files

./npm-scanner.sh init

Run Your First Scan

Scan global packages:

./npm-scanner.sh scan --global

Scan a project:

./npm-scanner.sh scan --project ~/code/my-project

Validate a package:

./npm-scanner.sh validate package-name

Refresh Data Files Periodically

./npm-scanner.sh refresh

Run monthly to keep detection data current.