f
expandRemoteGlob(): Promise<string[]>
pattern: string,
extensions: readonly string[],
cache: Map<string, string>
Every URL a remote glob means.
f
fetchRemote(): Promise<string>
url: string,
cache: Map<string, string>
The text at a URL, fetched once per cache.
f
isRemoteGlob(input: string): boolean
Whether an input carries glob metacharacters — the same test the local walk makes.
f
isRemoteInput(input: string): boolean
Whether an input names something on a server rather than on this disk.
f
namedInWords(message: string): string | null
The same conditions as REFUSALS, recognised from a runtime that reports them only in prose.
f
remoteDirectoryPattern(url: string): string | null
The recursive pattern a remote DIRECTORY input means, or null where the URL names a file.
T
RemoteUnreadableFailure = Failure.Of<RemoteUnreadable>
The one failure this module declares.
v
RemoteUnreadable: Failure.FailureFactory<"RemoteUnreadable", { url: string; why: string; }>
A remote input could not be fetched — refused, 404, or not something a module can be made of.
Usage
import * as mod from "lib/setup/remote-inputs.ts";