PackagePhobia CLI
Check NPM package through command-line
2
📟 PackagePhobia CLI 📟
PackagePhobia CLI is a command-line tool that lets you effortlessly check the install size, dependencies, and other crucial details of your favorite packages
[!WARNING] This package is not official. It is a personal project, so it may not be updated or maintained.
Packages used: 🔮 Commander 〰️ 🎨 Picocolors 〰️ 🏯 CliTable3 〰️ ✨ @Clack/Prompts
🌎 Global Installation (using NPM)
[!TIP] npm i -g pkg-phobia-cli
⏬ Local Installation
Command | Action |
---|---|
git clone https://github.com/AlbertLnz/packagephobia-cli | Clone the repository |
cd pkg-phobia-cli | Enter to the project |
npm i -g . | Install globally on your computer pkg-phobia-cli |
PRODUCTION = false | For testing the app, you can change the value of the variable PRODUCTION to false |
pp satori | Now you can test the program |
📟 Command List (ej: satori)
Command | Description |
---|---|
pp satori | Get the package installation size |
pp satori -a | Complete information of the latest version |
pp satori -v | Return the last version, his size and date |
pp satori -v --table | Table of versions, his size and date |
pp satori -v --json | xxxxxx DEVELOPING xxxxxx |
pp satori -v --csv | xxxxxx DEVELOPING xxxxxx |
pp satori -v --all | All the versions of the package |
pp satori 1.0.0 | Return all the information of that version |
pp get-config | Get the Packagephobia CLI configuration |
pp set-config | Set your own customization Packagephobia CLI package 😃✌️ |
🤝 Contribute
[!IMPORTANT] This project is still in development, so please, if you want to contribute, you can do it in the issues section.
📑 TO-DO
- JSON & CSV compatibility
- Various packages at same time
- Fix some bugs with some packages
- More user settings questions
- TypeScript support
📡 API’s used
📦 | PackagePhobia API |
---|
🏪 | NPM Registry API |
---|