v1

latestOpenAPI 3.0.12026-07-175557102.5 KB

Get package version source

Returns the rendered source code of a file or a directory listing for a package version

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

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

The version of the package (or "latest")

Query parameters

pathstring

The file path to retrieve. Defaults to "/" (root directory listing).

Response

OK

cssstring required

CSS for styling the source view.

comrakCssstring required

CSS for comrak markdown rendering.

scriptstring required

JavaScript for the source view.

Example response

{
  "version": {
    "scope": "denoland",
    "package": "fmt",
    "version": "1.2.3"
  }
}