AkashiDocs
Providers

npm

JavaScript package metadata from the public npm registry: latest version, licence, repository, deprecation and weekly downloads.

ToolPriceWhat it does
npm/package$0.001An 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

FieldTypeRequiredDescription
namestringyesnpm package name, e.g. 'express' or '@types/node'. 1–214 characters. Pattern ^(?:@[A-Za-z0-9._~-]+/)?[A-Za-z0-9._~-]+$.

Example

Input
{
  "name": "express"
}
Run it with the CLI
node akashi.mjs run npm/package --input '{"name":"express"}'

On this page