voo_config_generator 1.0.0 copy "voo_config_generator: ^1.0.0" to clipboard
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 #

pub package

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 #

  1. Create a configuration file (.env, .config, etc.)
  2. Create an annotated class with @VooConfig and @ConfigField
  3. 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

0
likes
140
points
69
downloads

Publisher

verified publishervoostack.com

Weekly Downloads

Code generator for voo_config package. Generates typed configuration classes at build time from .env or .config files.

Homepage
Repository (GitHub)
View/report issues

Topics

#code-generation #build-runner #config #configuration

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, source_gen, voo_config

More

Packages that depend on voo_config_generator