voo_config_generator 1.0.0
voo_config_generator: ^1.0.0 copied to clipboard
Code generator for voo_config package. Generates typed configuration classes at build time from .env or .config files.
VooConfig Generator #
Code generator for the voo_config package. Generates type-safe Dart code from configuration files at build time.
Installation #
Add to your pubspec.yaml:
dependencies:
voo_config: ^1.0.0
dev_dependencies:
voo_config_generator: ^1.0.0
build_runner: ^2.4.0
Usage #
- Create a configuration file (
.env,.config, etc.) - Create an annotated class with
@VooConfigand@ConfigField - Run
dart run build_runner build --delete-conflicting-outputs
See voo_config for complete documentation.
Security Warnings #
This generator will emit warnings if it detects values that look like secrets:
⚠️ SECURITY WARNING: Field "API_KEY" looks like it might be a secret.
VooConfig embeds values directly in your app binary.
For secrets, use the voo_secrets package instead.
Patterns detected:
- Field names:
*_key,*_secret,*_token,*_password,api_key, etc. - Value patterns:
sk_live_*,ghp_*,xoxb-*, JWT tokens, etc.
License #
MIT License