Skip to main content

config

@rotorsoft/act-root


@rotorsoft/act-root / act/src / config

Function: config()

config(): object

Defined in: libs/act/src/config.ts:93

Returns the current Act Framework configuration, validated and type-safe.

Merges package.json metadata with environment, logging, and timing options.

Returns

object

The validated configuration object.

author?

optional author: string | { email?: string; name: string; }

dependencies?

optional dependencies: Record<string, string>

description?

optional description: string

env

env: "development" | "test" | "staging" | "production"

license?

optional license: string

logLevel

logLevel: "fatal" | "error" | "warn" | "info" | "debug" | "trace"

logSingleLine

logSingleLine: boolean

name

name: string

sleepMs

sleepMs: number

version

version: string

Example

const cfg = config();
console.log(cfg.env, cfg.logLevel);