npm
JavaScript package metadata from the public npm registry: latest version, licence, repository, deprecation and weekly downloads.
- Provider id:
npm - Tools: 1, at $0.001 per call
- Categories: Developer
- Homepage: www.npmjs.com
- Provider docs: github.com/npm/registry/blob/main/docs/REGISTRY-API.md
- Attribution: npm registry
| Tool | Price | What it does |
|---|---|---|
npm/package | $0.001 | An npm package's latest version, licence, repository, deprecation notice and weekly downloads. |
Inputs are JSON bodies, and unknown fields are rejected with 422 invalid_input (not charged). POST /v1/inspect with a tool's id returns the same input schema, plus the output schema.
npm Package
npm/package · $0.001 per call (local) · Developer
An npm package's latest version, licence, repository, deprecation notice and weekly downloads.
Reads the registry's document for the package's latest dist-tag and returns its version, description, licence, homepage, repository URL, maintainer and dependency counts, required engines (Node version), the deprecation message if the latest version is deprecated, plus last week's download count and the latest publish time when npm reports them. It does not list every version or audit dependencies: use depsdev/package for version history and depsdev/version for licences and security advisories; use github/repo for the repository's activity.
Related: depsdev/package, depsdev/version, github/repo, pypi/package.
Input
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | npm package name, e.g. 'express' or '@types/node'. 1–214 characters. Pattern ^(?:@[A-Za-z0-9._~-]+/)?[A-Za-z0-9._~-]+$. |
Example
{
"name": "express"
}node akashi.mjs run npm/package --input '{"name":"express"}'