@logtape/config
v2.0.5
Published
Configure LogTape from plain objects (JSON, YAML, TOML)
Maintainers
Readme
@logtape/config
This package provides functionality to configure LogTape from plain objects, such as those loaded from JSON or YAML files.
Installation
The package is available on JSR and npm:
deno add jsr:@logtape/config
npm add @logtape/config
pnpm add @logtape/config
yarn add @logtape/config
bun add @logtape/configUsage
You can configure LogTape using a plain object:
import { configureFromObject } from "@logtape/config";
import { readFile } from "node:fs/promises";
const config = JSON.parse(await readFile("./logtape.json", "utf-8"));
await configureFromObject(config);For more details, see the Configuration from objects section in the LogTape manual.
