Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fathym_common/src/build/loadDenoConfig.ts>loadDenoConfig

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Go to Latest
function loadDenoConfig
import { loadDenoConfig } from "https://deno.land/x/fathym_common@v0.2.165-integration/src/build/loadDenoConfig.ts";

Loads the deno configuration file and returns the DenoConfig object.

Examples

From direct import

import { loadDenoConfig } from '@fathym/common/build';

const { Config, DenoConfigPath } = await loadDenoConfig();

From common import

import { loadDenoConfig } from '@fathym/common';

const { Config, DenoConfigPath } = await loadDenoConfig();

Parameters

optional
denoCfgPath: string

The path to the deno.jsonc file. Default to "./deno.json" or "./deno.jsonc".

Returns

Promise<{ Config: DenoConfig; DenoConfigPath: string; }>

A denoConfig object.