A CLI tool to list global npm packages for all Node.js versions installed in nvm.
Install globally via npm:
npm install -g @bluenex/nvmlsgOr use npx to run without installing:
npx @bluenex/nvmlsgSimply run the command without any arguments to list all global packages:
# If installed globally
nvmlsg
# Using npx
npx @bluenex/nvmlsg
# Or explicitly use the ls command
nvmlsg ls
npx @bluenex/nvmlsg lsThe tool will:
- Scan all Node.js versions installed via nvm with progress indicators
- List global npm packages for each version
- Display the results in a clean format
- Fall back to system Node.js if nvm is not available
- Detects all Node.js versions installed via nvm
- Lists global packages for each version
- Works with system Node.js when nvm is not available
- Clean, formatted output similar to
npm list -g - Progress indicators during scanning
- Built with Commander.js for extensibility
- No configuration required
Scanning for Node.js versions... ✔
/Users/username/.nvm/versions/node/v18.16.0/lib
├── [email protected]
├── [email protected]
└── [email protected]
/Users/username/.nvm/versions/node/v20.11.0/lib
├── [email protected]
├── [email protected]
└── [email protected]
- Node.js (any version)
- npm
# Create npm account (if you don't have one)
npm adduser
# Login to npm
npm login# 1. Build the project
npm run build
# 2. Test the package locally (optional but recommended)
npm pack
# This creates a .tgz file you can inspect
# 3. Publish to npm (--access public required for scoped packages)
npm publish --access public
# 4. Verify the publication works
npx @bluenex/nvmlsg --help# For bug fixes (1.0.0 -> 1.0.1)
npm version patch
npm publish --access public
# For new features (1.0.0 -> 1.1.0)
npm version minor
npm publish --access public
# For breaking changes (1.0.0 -> 2.0.0)
npm version major
npm publish --access publicFor GitHub releases, push to the repository and create a new release tag.
MIT