npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tonygeez/nph

v1.1.8

Published

A CLI tool for managing Node.js dependencies with ease

Downloads

124

Readme

nph

Node Package Helper - A CLI tool for managing Node.js dependencies with ease.

Installation

Install nph globally using npm:

npm install -g @tonygeez/nph

Overview

nph provides a set of commands to streamline your Node.js project maintenance:

  • Dependency Verification Check for invalid package names and versions and fix issue automatically.

  • Deprecated Packages Find deprecated packages and code patterns

  • Smart Upgrades Safely upgrade dependencies with peer conflict detection

  • Node Scripts Straightforward listing of scripts and add, edit, and remove npm scripts faster

Commands

nph scripts

# Display all npm scripts from package.json in a formatted list.

nph scripts

═══════════════════════════════════════════════════════════════
║  Print Script CLI                                            ║
═══════════════════════════════════════════════════════════════

▸ build    → webpack --mode production
▸ dev      → webpack serve --mode development
▸ test     → jest
▸ lint     → eslint src/

---

# Interactively add a new script to package.json.
nph script add 

1. Enter script name (e.g., `npm run COMMAND`)
2. Enter command to execute (e.g., `node ./index.js`)
3. Confirm addition

---

# Interactively remove one or more scripts from package.json.
nph script rm

1. Shows numbered list of all scripts
2. Enter script number(s) to remove (e.g., `3` or `3,4,7`)
3. Confirm removal


---

# Interactively edit an existing script's name or command.
nph script edit

1. Shows numbered list of all scripts
2. Enter script number to edit
3. Enter new name (defaults to current)
4. Enter new command (defaults to current)
5. Confirm update

nph verif

# Verify all dependencies exist and have valid versions.
nph dep

- `--fix-all`: Fix version mismatches and suggest package name corrections
- `--fix-version`: Only fix version mismatches
- `--fix-name`: Only fix package name typos

═══════════════════════════════════════════════════════════════
║  Dependency Verifier                                         ║
═══════════════════════════════════════════════════════════════

▸ Checking 42 dependencies...

✔ lodash@^4.17.21
✔ express@^4.18.2
✖ nonexistent-pkg@^1.0.0
  ▸ This package does not exist
  ▸ Did you mean: existing-pkg

nph dep

# Scan for deprecated npm packages and deprecated code patterns using ESLint.
nph dep

- `--json`: Output results as JSON
- `--fix`: (Note: Manual review required for deprecations)

═══════════════════════════════════════════════════════════════
║  Deprecated Code Analyzer                                    ║
═══════════════════════════════════════════════════════════════

▸ Scanning for deprecated patterns...

Deprecated packages:

▸ request
  Reason: request has been deprecated

Deprecated code patterns:

▸ /src/index.js:15:23
  Issue: 'os.tmpDir()' is deprecated since v7.0.0

nph upgrade

# Analyze and safely upgrade dependencies to their latest compatible versions.
nph upgrade

- `--dry-run`: Show what would be upgraded without making changes
- `--force`: Apply upgrades even with peer dependency conflicts

═══════════════════════════════════════════════════════════════
║  Dependency Upgrade Analyzer                                 ║
═══════════════════════════════════════════════════════════════

▸ Analyzing 42 dependencies for safe upgrades...

Upgrades available:

▸ lodash
  Current: ^4.17.15
  Latest: ^4.17.21

▸ typescript
  Current: ^4.5.0
  Latest: ^5.2.2
  ⚠ Peer dependency warnings:
    eslint-plugin-import requires typescript@^4.5.0

Configuration

nph works directly with your package.json file. No additional configuration is required.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.