interface ResolvedSpecifier

A user-typed package argument and everything derived from it.

Properties

readonly
input: string

The argument exactly as the user typed it.

readonly
specifier: string

The module specifier to hand to deno doc.

readonly
short: string

The shortest form that resolves back to ResolvedSpecifier.specifier, for listings and TRY lines. Equal to shortenSpecifier(specifier), except for a path, where it is the input itself — a path is anchored to the working directory the CLI was started in, and only the typed form still says so.

The resolution rule that matched.

readonly
shorthand: boolean

Whether the input was shorthand, and therefore expanded.

Usage

import { type ResolvedSpecifier } from "mod.ts";