A powerful CLI tool to visualize differences between your current npm package versions and their latest releases in a browser.
Use npm-peek instantly with npx:
# Interactive mode with autocompletion for your package.json dependencies
npx npm-peek
# Direct comparison mode with specific package
npx npm-peek react
- Interactive Mode: Run without arguments to select from your project dependencies with fuzzy search
- Direct Mode: Specify a package name to instantly compare with its latest version
- Smart Dependency Detection: Automatically finds and lists all packages from your
package.json
- Fuzzy Search: Quickly locate packages with partial name matching
- 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
Global Installation (Optional):
npm install -g npm-peek
# or
yarn global add npm-peek
# or
pnpm add -g npm-peek
Then use anywhere:
npm-peek [package-name]
- Reads the version of the specified package from your
package.json
- Fetches the latest version of the package from the npm registry
- Generates a visual diff
- Opens the diff in your default browser