shelf_packages_handler 1.0.3

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 95

A package that provides a shelf handler for serving a packages/ directory. It's intended to be usable as the first handler in a Cascade, where any requests that include /packages/ are served package assets, and all other requests cascade to additional handlers.

1.0.3

  • Require Dart SDK 1.22.0
  • Support package:async v2

1.0.2

  • Fix Strong mode errors with package:shelf v0.7.x

1.0.1

  • Allow dependencies on package:shelf v0.7.x

0.0.1

  • Initial version

1. Depend on it

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


dependencies:
  shelf_packages_handler: "^1.0.3"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:shelf_packages_handler/shelf_packages_handler.dart';
        
Version Uploaded Documentation Archive
1.0.3 Sep 21, 2017 Go to the documentation of shelf_packages_handler 1.0.3 Download shelf_packages_handler 1.0.3 archive
1.0.2 Aug 30, 2017 Go to the documentation of shelf_packages_handler 1.0.2 Download shelf_packages_handler 1.0.2 archive
1.0.1 Aug 25, 2017 Go to the documentation of shelf_packages_handler 1.0.1 Download shelf_packages_handler 1.0.1 archive
1.0.0 Jul 21, 2016 Go to the documentation of shelf_packages_handler 1.0.0 Download shelf_packages_handler 1.0.0 archive

Analysis

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

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
90 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
95
Learn more about scoring.

Platforms

Detected platforms: Flutter, other

Primary library: package:shelf_packages_handler/shelf_packages_handler.dart with components: io, isolate.

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use shelf_packages_handler.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.22.0 <2.0.0
async >=1.1.0 <3.0.0 2.0.6
package_resolver ^1.0.0 1.0.2
path ^1.0.0 1.5.1
shelf >=0.6.0 <0.8.0 0.7.2
shelf_static ^0.2.0 0.2.7
Transitive dependencies
charcode 1.1.1
collection 1.14.9
convert 2.0.1
http 0.11.3+16
http_parser 3.1.1
mime 0.9.6
package_config 1.0.3
source_span 1.4.0
stack_trace 1.9.2
stream_channel 1.6.5
string_scanner 1.0.2
typed_data 1.1.5
Dev dependencies
test ^0.12.0