config
@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?
optionalauthor:string| {email?:string;name:string; }
dependencies?
optionaldependencies:Record<string,string>
description?
optionaldescription:string
env
env:
"development"|"test"|"staging"|"production"
license?
optionallicense: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);