A fantastic configuration library for Deno
import { auto } from "https://deno.land/x/chimera/mod.ts";
// Define your expected configuration
interface Config {
username: string;
maxconn: number;
nested: { foo: string };
// More fields ...
}
// Let chimera handle environment variables, JSON, YAML and command line
// arguments for you!
const config: Config = await auto({ name: "example" });
console.log(config);
The default branch moves fast and may contain breaking changes, always point your import urls to a specific version. Check our GitHub releases page to see all available versions
Licensed under the MIT license. See LICENSE for more information