configer 0.0.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 39

Configer

Configer is a small library for Dart that makes creating config files easy.

Early alpha state of development! But it works :D

Inspired by Yamler of geNAZt (https://www.spigotmc.org/resources/yamler.315/)

Usage

A simple usage example:

import 'dart:io';
import 'package:Configer/configer.dart';

main( ) async {
    var myConfig = new TestConfig( new File( "myCoolConf.json" ) );
    await myConfig.init();
    print( myConfig.foo ); // Outputs the value in
    print( myConfig.bar ); // myCoolConf.json or the
    print( myConfig.foobar ); // default value if there is one
}

class TestConfig extends Config {
    int foo = 34;
    bool bar;
    String foobar;

    TestConfig( File configLocation ) : super( configLocation );
}

This generates a file myCoolConf.json which contains the default values:

{
  "foo": 34,
  "bar": null,
  "foobar": "Default string"
}

Just edit the config and see the result!

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.0.1

  • Initial version
  • basic functionality
  • save/read config file
  • default values

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  configer: "^0.0.1"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


      import 'package:configer/configer.dart';
  
Version Uploaded Documentation Archive
0.0.1 Dec 8, 2016 Go to the documentation of configer 0.0.1 Download configer 0.0.1 archive

Analysis

We analyzed this package on Jun 12, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.60.0
  • pana: 0.11.3

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
96 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
49 / 100
Overall score:
Weighted score of the above. [more]
39
Learn more about scoring.

Platforms

Detected platforms: other

Primary library: package:configer/configer.dart with components: io, mirrors.

Suggestions

  • Package is getting outdated.

    The package was released 78 weeks ago.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 3 hints.

    Run dartfmt to format lib/configer.dart.

    Run dartfmt to format lib/src/configer_base.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0
Dev dependencies
test >=0.12.0 <0.13.0