Deno supports .

    You can use import maps with the CLI flag.

    • single import map
    • no fallback URLs
    • Deno does not support std: namespace
    • supports only file:, http: and https: schemes

    Example:

    import_map.json

    1. import { red } from "fmt/colors.ts";

    Then:

    To use starting directory for absolute imports:

    1. // import_map.json
    2. {
    3. "imports": {
    4. "/": "./"
    5. }
    1. // import_map.json
    2. {
    3. "imports": {
    4. "/": "./src"
    5. }