@safedep/pmg
v0.2.1
Published
PMG protects developers from getting compromised by malicious packages
Maintainers
Readme
PMG - Package Manager Guard
🤖 PMG protects developers from getting compromised by malicious open source packages.
This is the npm distribution of PMG, a tool that wraps your favorite package manager (e.g., npm) and blocks malicious packages at install time.
Installation
Install PMG globally via npm:
npm install -g @safedep/pmgOr using Homebrew:
brew tap safedep/tap
brew install safedep/tap/pmgUsage
Set up PMG to automatically protect your package installations:
# Recommended: Set up automatic protection
pmg setup installAfter setup, use your package managers normally:
# Your regular commands are now protected
npm install express
pnpm add react
pip install requestsOr use PMG manually without setup:
# Manual protection (alternative)
pmg npm install express
pmg pnpm add react
pmg pip install requestsPlatform Support
- ✅ macOS (Intel & Apple Silicon)
- ✅ Linux (x86_64, ARM64, i386)
- ✅ Windows (x86_64, ARM64, i386)
Requires Node.js 14 or higher.
For complete documentation, advanced usage, troubleshooting, and more information, please visit: github.com/safedep/pmg
