dart_dice_parser 0.1.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 13

dart_dice_parser

A library for parsing dice notation

Usage

A simple usage example:

import 'package:dart_dice_parser/dart_dice_parser.dart';

main() {
  
  var diceParser = new DiceParser();
  
  var diceExpression = "2d6 + 1 + 3d10";
  
  print("$diceExpression : ${diceParser.roll(diceExpression)}");
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.1.2

  • move args to dev_dependency, since it's just for the example

0.1.1

  • added contributing/code-of-conduct docs

0.1.0

  • change DiceRoller to output information about individual rolls, instead of just returning the sum.

0.0.6

  • remove dependency on quiver, since not heavily using it

0.0.5

  • various fixes as I figure out what I'm doing with Dart
  • empty/null checking with quiver.strings

0.0.1

  • Initial version, created by Steve Christensen

Use this package as a library

1. Depend on it

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


dependencies:
  dart_dice_parser: ^0.1.2

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:dart_dice_parser/dart_dice_parser.dart';
  
Version Uploaded Documentation Archive
0.1.2 Dec 1, 2017 Go to the documentation of dart_dice_parser 0.1.2 Download dart_dice_parser 0.1.2 archive
0.1.1 Dec 1, 2017 Go to the documentation of dart_dice_parser 0.1.1 Download dart_dice_parser 0.1.1 archive
0.1.0 Dec 1, 2017 Go to the documentation of dart_dice_parser 0.1.0 Download dart_dice_parser 0.1.0 archive
0.0.6 Dec 1, 2017 Go to the documentation of dart_dice_parser 0.0.6 Download dart_dice_parser 0.0.6 archive
0.0.5 Nov 28, 2017 Go to the documentation of dart_dice_parser 0.0.5 Download dart_dice_parser 0.0.5 archive
0.0.4 Nov 28, 2017 Go to the documentation of dart_dice_parser 0.0.4 Download dart_dice_parser 0.0.4 archive
0.0.3 Nov 28, 2017 Go to the documentation of dart_dice_parser 0.0.3 Download dart_dice_parser 0.0.3 archive
0.0.2 Nov 28, 2017 Go to the documentation of dart_dice_parser 0.0.2 Download dart_dice_parser 0.0.2 archive
0.0.1 Nov 28, 2017 Go to the documentation of dart_dice_parser 0.0.1 Download dart_dice_parser 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
25
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
13
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <2.0.0