UriTemplate Reborn #
UriTemplate Reborn is an implementation of RFC 6570, URI Template.
This version is a fork of Dart Team's uri_template, just try to port String mode in Dart 2.
There is a FormatException while testing, but the library just works, i am lazy to fix it.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: uri_template_r: ^0.6.2
2. Install it
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
import 'package:uri_template_r/uri_parser.dart'; import 'package:uri_template_r/uri_template.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jul 2, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.8.4
- pana: 0.13.9+1
lib/uri_parser.dart. (-9.08 points)
lib/uri_parser.dart reported 19 hints, including:
line 7 col 1: Prefer using /// for doc comments.
line 34 col 13: Don't type annotate initializing formals.
line 35 col 33: Unnecessary new keyword.
line 36 col 20: Unnecessary new keyword.
line 44 col 3: Prefer using /// for doc comments.
lib/uri_template.dart. (-6.31 points)
lib/uri_template.dart reported 13 hints, including:
line 13 col 20: Unnecessary new keyword.
line 18 col 26: Unnecessary new keyword.
line 20 col 26: Unnecessary new keyword.
line 21 col 23: Unnecessary new keyword.
line 22 col 27: Unnecessary new keyword.
lib/src/encoding.dart. (-2.96 points)
lib/src/encoding.dart reported 6 hints, including:
line 22 col 25: Avoid const keyword.
line 41 col 23: Avoid const keyword.
line 59 col 1: Prefer using /// for doc comments.
line 68 col 40: Use
= to separate a named parameter from its default value.
line 87 col 16: Unnecessary new keyword.
lib/src/utils.dart. (-0.50 points)
lib/src/utils.dart reported 1 hint:
line 15 col 18: Unnecessary new keyword.
Maintenance issues and suggestions
Provide a file named
CHANGELOG.md. (-20 points)
Changelog entries help developers follow the progress of your package. See the example generated by
Package is getting outdated. (-86.85 points)
The package was last published 97 weeks ago.
The package description is too short. (-16 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
uri_template_r.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.