Package Version Lookup
Query deps.dev to get the latest stable version of open source packages.
Usage
Use the Python script at scripts/deps-dev.py.
Get Latest Version
bash
# npm package python scripts/deps-dev.py package --system npm --package express # Scoped npm package python scripts/deps-dev.py package --system npm --package "@types/node" # PyPI package python scripts/deps-dev.py package --system pypi --package requests # Go module python scripts/deps-dev.py package --system go --package "github.com/gin-gonic/gin" # Cargo crate python scripts/deps-dev.py package --system cargo --package serde # Show recent versions python scripts/deps-dev.py package --system npm --package express --all-versions
Get Specific Version Details
bash
python scripts/deps-dev.py version --system npm --package express --version 5.0.0
Supported Ecosystems
| Ecosystem | System ID |
|---|---|
| npm | npm |
| PyPI | pypi |
| Go | go |
| Cargo | cargo |
| Maven | maven |
| NuGet | nuget |
| RubyGems | rubygems |
Ecosystem Detection
Identify the ecosystem from project files:
- •
package.json→ npm - •
requirements.txt,pyproject.toml→ pypi - •
go.mod→ go - •
Cargo.toml→ cargo - •
pom.xml,build.gradle→ maven - •
*.csproj→ nuget - •
Gemfile→ rubygems
Rules
- •Use
--format jsonfor structured output when needed - •The script handles URL encoding automatically
- •Use
--all-versionsto see recent version history