yaml2dart 1.0.5 copy "yaml2dart: ^1.0.5" to clipboard
yaml2dart: ^1.0.5 copied to clipboard

Converts a YAML file to a Dart file containing global scope constants. Especially good for pubspec.yaml.

example/yaml2dart_example.dart

import 'package:yaml2dart/yaml2dart.dart';

void main() async {
  // Create a converter instance with the input and output file paths.
  final converter = Yaml2Dart('example.yaml', 'example_constants.dart');

  // Convert the YAML to Dart.
  await converter.convert();
}
1
likes
0
pub points
0%
popularity

Publisher

verified publisherhelio.me

Converts a YAML file to a Dart file containing global scope constants. Especially good for pubspec.yaml.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

recase, yaml

More

Packages that depend on yaml2dart