yaml_modify 0.0.6 copy "yaml_modify: ^0.0.6" to clipboard
yaml_modify: ^0.0.6 copied to clipboard

outdated

A library for modify yaml files

yamlicious #

A library for modify yaml files

Usage #

A simple usage example:

import 'package:yaml_modify/yaml_modify.dart';

main() {
  File file = File("pubspec.yaml");
  final yaml = loadYaml(file.readAsStringSync());

  final modifiable = getModifiableNode(yaml);
  modifiable['flutter'] = {
    'assets':['img1.png', 'img2.png']
  };

  final strYaml = toYamlString(modifiable);
  File("pubspec-output.yaml").writeAsStringSync(strYaml);
  print(strYaml);
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

6
likes
0
pub points
87%
popularity

Publisher

unverified uploader

A library for modify yaml files

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

quiver, yaml

More

Packages that depend on yaml_modify