Skip to main content
Home

@fathym/common@0.2.274
Built and signed on GitHub Actions

The Fathym reference architecture, used for cross cutting concerns and repeatable design patterns.

This package works with Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
94%
Published
a month ago (0.2.274)
function loadDenoConfig
loadDenoConfig(denoCfgPath?: string): Promise<{ Config: DenoConfig; DenoConfigPath: string; }>

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".

Return Type

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

A denoConfig object.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@fathym/common

Import symbol

import { loadDenoConfig } from "@fathym/common/build";
or

Import directly with a jsr specifier

import { loadDenoConfig } from "jsr:@fathym/common/build";

Add Package

pnpm i jsr:@fathym/common
or (using pnpm 10.8 or older)
pnpm dlx jsr add @fathym/common

Import symbol

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

Add Package

yarn add jsr:@fathym/common
or (using Yarn 4.8 or older)
yarn dlx jsr add @fathym/common

Import symbol

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

Add Package

vlt install jsr:@fathym/common

Import symbol

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

Add Package

npx jsr add @fathym/common

Import symbol

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

Add Package

bunx jsr add @fathym/common

Import symbol

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