An open API service indexing awesome lists of open source software.

https://github.com/altair-bueno/chimera

A fantastic configuration library for Deno
https://github.com/altair-bueno/chimera

command-line config configuration deno environment environment-variables json typescript yaml

Last synced: over 1 year ago
JSON representation

A fantastic configuration library for Deno

Awesome Lists containing this project

README

          

# Chimera

A fantastic configuration library for Deno

```ts,ignore
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

- [Standalone examples](examples/)
- [API Documentation](https://doc.deno.land/https://deno.land/x/chimera)
- [Source code](https://github.com/Altair-Bueno/chimera)
- [Deno Land](https://deno.land/x/chimera)

## 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](https://github.com/Altair-Bueno/chimera/releases) to see
all available versions

## License

Licensed under the MIT license. See [LICENSE](LICENSE) for more information