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:

  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';
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]
Learn more about scoring.

We analyzed this package on Nov 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.0
  • pana: 0.12.21


Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Health suggestions

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

Analysis of lib/uri_template.dart reported 4 hints:

line 27 col 1: Prefer using /// for doc comments.

line 60 col 21: This function has a return type of 'String', but doesn't end with a return statement.

line 69 col 3: Prefer using /// for doc comments.

line 132 col 13: Use isNotEmpty instead of length

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

Analysis of lib/uri_parser.dart reported 3 hints:

line 7 col 1: Prefer using /// for doc comments.

line 34 col 13: Don't type annotate initializing formals.

line 44 col 3: Prefer using /// for doc comments.

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

Analysis of lib/src/encoding.dart reported 2 hints:

line 59 col 1: Prefer using /// for doc comments.

line 68 col 40: Use = to separate a named parameter from its default value.

Format lib/src/utils.dart.

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

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. (-21.64 points)

The package was last published 63 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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <3.0.0
quiver ^2.0.0 2.1.2+1
utf ^0.9.0 0.9.0+5
Transitive dependencies
matcher 0.12.6
meta 1.1.8
path 1.6.4
stack_trace 1.9.3
Dev dependencies
test any