v1

latestOpenAPI 3.0.12026-06-115557102.5 KB

List the dependencies of a package version

Returns a list of dependencies of a package

get/scopes/{scope}/packages/{package}/versions/{version}/dependencies

Path parameters

scopestring required

The name of a scope. This must not be @ prefixed.

Example:denoland

The name of the scope

packagestring required

The name of a package.

Example:fmt

The name of the package

versionstring required

A semantic version.

Example:1.2.3

The version of the package

Response

OK

kind'jsr' | 'npm' required

The kind of dependency.

namestring required

The fully qualified name of the dependency.

constraintstring required

The semver constraint of the dependency.

pathstring required

The path being imported from the dependency. This may be the empty string if the "default entrypoint" is being imported.

Example response

[
  {
    "name": "@std/fs",
    "constraint": "^0.50.0",
    "path": "/exists"
  }
]