Categories

Functions

f
createImportMap(options: CreateImportMapOptions): ImportMapDocument

Expand a package's exact and patterned imports into a Deno import map.

f
formatImportMap(
map: ImportMapDocument,
indent?: string | number
): string

Serialize an import map as stable JSON with a trailing newline.

f
packageEntries(
name: string,
target: string
): Record<string, string>

Build the two import map entries a package needs to resolve both itself and its subpaths.

f
writeImportMap(options: WriteImportMapOptions): string

Create an import map and write it to disk, creating parent directories as needed.

Interfaces

I
ImportMapDocument

A deterministic Deno import map generated from package import entries, following the Import Maps Standard.