dart_config 0.5.0 copy "dart_config: ^0.5.0" to clipboard
dart_config: ^0.5.0 copied to clipboard

Dart 1 only

A set of libraries designed to provide configuration to Dart applications. Using dependency injection, the same library API can load config information from the filesystem and httprequest, formatted a [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dart_config

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dart_config: ^0.5.0

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:dart_config/config.dart';
import 'package:dart_config/default_browser.dart';
import 'package:dart_config/default_server.dart';
import 'package:dart_config/loaders/config_loader_filesystem.dart';
import 'package:dart_config/loaders/config_loader_httprequest.dart';
import 'package:dart_config/parsers/config_parser_json.dart';
import 'package:dart_config/parsers/config_parser_yaml.dart';
0
likes
0
pub points
18%
popularity

Publisher

unverified uploader

A set of libraries designed to provide configuration to Dart applications. Using dependency injection, the same library API can load config information from the filesystem and httprequest, formatted as JSON or YAML. Customization with additional providers is also possible by implementing two simple interfaces.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

unittest, yaml

More

Packages that depend on dart_config