Skip to main content

Configuration

SourceRegistryAPI

A collection of tools for handling Deno’s configuration.


Note

This matches the behaviour in Deno Deploy, for example the configuration file needs to be called either deno.json or deno.jsonc.


import {
    getDenoConfiguration,
    getImportMap,
} from 'https://deno.land/x/configuration';

console.log(await getDenoConfiguration());
console.log(await getImportMap());
import type {
    DenoConfiguration,
    ImportMap,
} from 'https://deno.land/x/configuration';

const denoConfiguration: DenoConfiguration = {};
const importMap: ImportMap = {};