arrow 0.0.13

arrow #

Use this package as a library

1. Depend on it

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


dependencies:
  arrow: ^0.0.13

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

We analyzed this package on Apr 1, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health issues and suggestions

Fix lib/src/cloud_run/forward.dart. (-43.75 points)

Analysis of lib/src/cloud_run/forward.dart failed with 2 errors:

line 31 col 23: The named parameter 'wrapped' isn't defined.

line 32 col 14: The method 'relayJson' isn't defined for the class 'Responder'.

Fix lib/src/router.dart. (-3.93 points)

Analysis of lib/src/router.dart reported 8 hints, including:

line 69 col 9: Use isNotEmpty instead of length

line 69 col 37: Use isNotEmpty instead of length

line 80 col 21: Use = to separate a named parameter from its default value.

line 91 col 21: Use = to separate a named parameter from its default value.

line 152 col 7: DO use curly braces for all flow control structures.

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

Analysis of lib/src/locker.dart reported 6 hints, including:

line 14 col 9: Avoid shadowing type parameters.

line 20 col 13: Avoid shadowing type parameters.

line 26 col 9: Avoid shadowing type parameters.

line 31 col 14: Avoid shadowing type parameters.

line 39 col 12: Avoid shadowing type parameters.

Fix additional 18 files with analysis or formatting issues. (-19.38 points)

Additional issues in the following files:

  • lib/src/middlewares/cors.dart (6 hints)
  • lib/src/middlewares/logger.dart (5 hints)
  • lib/src/route.dart (5 hints)
  • lib/src/arrow.dart (4 hints)
  • lib/src/manager.dart (4 hints)
  • lib/src/server.dart (4 hints)
  • lib/src/request.dart (3 hints)
  • lib/src/middleware.dart (2 hints)
  • lib/src/pipeline.dart (2 hints)
  • lib/src/constants.dart (1 hint)
  • lib/src/message.dart (1 hint)
  • lib/src/parameters.dart (1 hint)
  • lib/src/responder.dart (1 hint)
  • lib/arrow.dart (Run dartfmt to format lib/arrow.dart.)
  • lib/cloud_run.dart (Run dartfmt to format lib/cloud_run.dart.)
  • lib/src/content.dart (Run dartfmt to format lib/src/content.dart.)
  • lib/src/context.dart (Run dartfmt to format lib/src/context.dart.)
  • lib/src/response.dart (Run dartfmt to format lib/src/response.dart.)

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

The package description is too short. (-20 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 arrow.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
http ^0.12.0+4 0.12.0+4
path ^1.6.4 1.6.4
recase ^3.0.0 3.0.0
uri ^0.11.3+1 0.11.3+1
uuid ^2.0.4 2.0.4
Transitive dependencies
async 2.4.1
charcode 1.1.3
collection 1.14.12
convert 2.1.1
crypto 2.1.4
http_parser 3.1.4
matcher 0.12.6
meta 1.1.8
pedantic 1.9.0
quiver 2.1.3
source_span 1.7.0
stack_trace 1.9.3
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
utf 0.9.0+5
Dev dependencies
build_runner any