Skip to main content

Chimera

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);

Useful resources

Important note

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

License

Licensed under the MIT license. See LICENSE for more information