Categories

NPM JSR CI Socket

Expand package import patterns into explicit Deno import map entries.

Use the library API to create, format, or write deterministic import maps that conform to the Import Maps Standard.

This module also runs the importmapify CLI when executed directly.

Examples

Example 1

// Create an import map from the current package.
import { createImportMap } from 'jsr:@kjanat/importmapify';

const importMap = createImportMap({ root: Deno.cwd() });
console.log(importMap.imports);

Example 2

// Access these docs programmatically
deno doc jsr:@kjanat/importmapify

Configuration

Config-file shapes and the lifecycle hooks the CLI runs around generation.

Generate

Create an import map in memory, serialize it, or write it to disk.

Options

Option shapes and value types accepted by the generate functions.