simpleyaml 1.0.3

Dart native

A simple command-line application.

Provide a very simple method to use yaml files for saving an apps configuration.

Saving config data:

void save() {
  var settings = SimpleYaml(filePath: '.settings.yaml');

  settings['dbname'] = 'billing';
  settings['dbusername'] = 'username';
  settings['dbpassword'] = 'apassword';

  settings.save();
}

Loading config data.

void load() {
  var settings = SimpleYaml.load(filePath: '.settings.yaml');

  var dbname = settings['dbname'];
  var username = settings['dbusername'];
  var password = settings['dbpassword'];

  print('dbname $dbname, username: $username, password: $password');
}
0
likes
80
pub points
27%
popularity

A simple command-line application.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

bsutton@noojee.com.au

License

MIT (LICENSE)

Dependencies

dshell, meta, yaml

More

Packages that depend on simpleyaml