uri_template_r 0.6.2

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:

with pub:


$ pub get

with Flutter:


$ 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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
82
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
25
Learn more about scoring.

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

Health suggestions

Fix lib/uri_parser.dart. (-9.08 points)

Analysis of 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.

Fix lib/uri_template.dart. (-6.31 points)

Analysis of 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.

Fix lib/src/encoding.dart. (-2.96 points)

Analysis of 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.

Fix lib/src/utils.dart. (-0.50 points)

Analysis of 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 stagehand.

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 main.dart, example.dart, and uri_template_r.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <3.0.0
quiver ^2.0.0 2.1.3
utf ^0.9.0 0.9.0+5
Transitive dependencies
matcher 0.12.8
meta 1.1.8 1.2.0
path 1.7.0
stack_trace 1.9.5
Dev dependencies
test any