Functions

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.

Type Aliases

T
RemoteUnreadableFailure = Failure.Of<RemoteUnreadable>

The one failure this module declares.

Variables

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.