bear 0.4.1

Bear #

A simple web framework in Dart

Features #

  • GET, POST, PATCH, PUT, DELETE Http methods
  • Variable parameters
  • Middlewares

Usage #

final bear = Bear();

bear.get("/", (BearContext c) {
    ..write("Bear rocks!")


Documentation #

Roadmap #

0.4 #

  • [x] Total rewrite

0.3 #

  • [x] Static files support

0.2 #

  • [x] MimeTypes
  • [x] Middlewares

0.1 #

  • [x] variable parameters

Contact #

In French or in English

Use this package as a library

1. Depend on it

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

  bear: ^0.4.1

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:bear/bear.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 Jan 20, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4

Health suggestions

Fix lib/src/bear.dart. (-1.49 points)

Analysis of lib/src/bear.dart reported 3 hints:

line 109 col 63: Use = to separate a named parameter from its default value.

line 124 col 26: Use = to separate a named parameter from its default value.

line 124 col 45: Use = to separate a named parameter from its default value.

Format lib/bear.dart.

Run dartfmt to format lib/bear.dart.

Format lib/src/context/bear_context.dart.

Run dartfmt to format lib/src/context/bear_context.dart.

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/middleware/bear_middleware.dart (Run dartfmt to format lib/src/middleware/bear_middleware.dart.)
  • lib/src/middleware/bear_middlewares.dart (Run dartfmt to format lib/src/middleware/bear_middlewares.dart.)
  • lib/src/router/bear_route.dart (Run dartfmt to format lib/src/router/bear_route.dart.)

Maintenance issues and suggestions

Provide a file named (-20 points)

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

Use constrained dependencies. (-20 points)

The pubspec.yaml contains 2 dependencies without version constraints. Specify version ranges for the following dependencies: mime, path.

Package is getting outdated. (-39.73 points)

The package was last published 72 weeks ago.

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 bear.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
mime any 0.9.6+3
path any 1.6.4
Dev dependencies
http any
test any