magic_yaml_config 1.0.0
magic_yaml_config: ^1.0.0 copied to clipboard
A Dart library and CLI tool for reading and extracting values from YAML configuration files with dot notation, fallback paths, and multiple output formats.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate magic_yaml_configUse it
The package has the following executables:
$ yaml_config
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add magic_yaml_configWith Flutter:
$ flutter pub add magic_yaml_configThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
magic_yaml_config: ^1.0.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:magic_yaml_config/config.dart';
import 'package:magic_yaml_config/index.dart';
import 'package:magic_yaml_config/output_format.dart';
import 'package:magic_yaml_config/print.dart';