| Crates.io | pkg-latest |
| lib.rs | pkg-latest |
| version | 1.3.0 |
| created_at | 2025-10-08 08:44:58.801541+00 |
| updated_at | 2025-12-17 19:49:52.585745+00 |
| description | Resolve latest versions of npm and jsr packages |
| homepage | |
| repository | https://github.com/sigmaSd/pkg-latest |
| max_upload_size | |
| id | 1873658 |
| size | 30,271 |
A simple CLI tool to resolve the latest version of npm and jsr packages. Useful for Deno commands where you want to always use the latest version without manually checking.
cargo install pkg-latest
Or build from source:
cargo build --release
pkg-latest takes a package specifier (with optional npm: or jsr: prefix) and outputs the same specifier with the latest version appended. If no prefix is provided, it defaults to npm:.
latest npm:@google/gemini-cli
# Output: npm:@google/gemini-cli@1.2.3
latest @google/gemini-cli
# Output: npm:@google/gemini-cli@1.2.3
latest jsr:@sigma/bisect
# Output: jsr:@sigma/bisect@0.5.0
The primary use case is with Deno command substitution:
# Fish shell
deno run -A (latest jsr:@sigma/bisect)
deno run --no-config -A (latest npm:@google/gemini-cli) $argv
# Bash/Zsh
deno run -A $(latest jsr:@sigma/bisect)
deno run --no-config -A $(latest npm:@google/gemini-cli) "$@"
This ensures you always run the latest version without having to manually update version numbers.
https://registry.npmjs.org/https://jsr.io/latest dist-tag/version and appends it to the package specifierMinimal dependencies for fast compilation and small binary size:
ureq - lightweight HTTP clientserde - JSON parsingMIT