A CLI tool that lets you visually compare your installed npm package versions with any available release. Autocomplete helps you select a package, then pick a version to visually diff against your current one.
Use npm-peek instantly with npx:
# Interactive mode with autocompletion using your package.json
npx npm-peek
# Direct comparison mode with specific package & version
npx npm-peek react --target 19.1.0- Smart Dependency Detection: Automatically finds and lists all packages from your
package.json - Fuzzy Search: Quickly locate packages with partial name matching
- Version Autocomplete: Easily select from all available versions of a package
- Visual Diff Viewer: See all changes in a clean, browser-based HTML interface
- One-Command Operation: Compare versions with minimal typing
- Zero Configuration: Works out-of-the-box with any npm project
- Reads
package.jsonto identify dependencies and used version - Prompts you to select a package and target version (with autocomplete)
- Generates a visual diff
- Opens the diff in your default browser