npm-install-xray
v1.0.1
Published
A CLI tool that profiles npm install and shows which dependencies take the longest time to install.
Maintainers
Readme
🚀 npm-install-xray
A lightweight CLI tool to analyze npm install performance, package size, and suggest alternatives.
📦 What It Does
npm-install-xray helps you:
- ⏱ Measure install time of packages
- 📊 Detect slowest dependencies
- 📦 Calculate
node_modulestotal size - 🔁 Suggest lighter alternatives
- 🎨 Display colored output in terminal
It works without any external dependencies.
✨ Features
- ✔ Profiles
npm install --timing - ✔ Shows top 5 slowest packages
- ✔ Calculates folder size recursively
- ✔ Suggests modern alternatives
- ✔ Displays total
node_modulessize - ✔ Clean CLI output with colors
- ✔ Zero dependencies
📥 Installation
Install globally:
npm install -g npm-install-xrayUse Directly:
npx npm-install-xrayUsing npm exec (modern alternative)
npm exec npm-install-xray,Example Output
Running npm install with timing...
Slowest Packages
mongodb 2264ms 3.31MB 🔁 Suggested alternative: prisma
mongoose 1820ms 1.96MB
bson 1062ms 2.07MB
Total node_modules Size: 13.06MB
