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

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

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

Loads the deno configuration file synchronously and returns the DenoConfig object.

Examples

From direct import

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

const { Config, DenoConfigPath } = loadDenoConfigSync();

From common import

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

const { Config, DenoConfigPath } = loadDenoConfigSync();

Parameters

optional
denoCfgPath: string

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

Returns

{ Config: DenoConfig; DenoConfigPath: string; }

A denoConfig object.