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
- Host: GitHub
- URL: https://github.com/altair-bueno/chimera
- Owner: Altair-Bueno
- License: mit
- Created: 2022-07-25T18:50:59.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-22T11:45:47.000Z (about 3 years ago)
- Last Synced: 2024-10-06T05:21:43.683Z (over 1 year ago)
- Topics: command-line, config, configuration, deno, environment, environment-variables, json, typescript, yaml
- Language: TypeScript
- Homepage: https://deno.land/x/chimera
- Size: 85 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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