mserve 0.2.3

  • Readme
  • Changelog
  • Installing
  • 39

mserve #

A small (micro) web server.

Build Status pub package

Usage #

Start with mserve or mserve --port=80.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Changelog #

0.2.3 #

  • fixes for serving DDC compiled content

0.2.2 #

  • updates for Dart 2

0.2.1 #

0.2.0 #

  • change the utility to be package:shelf based

0.1.3 #

  • update our deps, and some updates for Dart 2

0.1.2 #

  • improved the error message when we're unable to bind to the requested port

0.1.1 #

  • added a logging option (--log)

0.1.0 #

  • first release

0.0.1 #

  • initial version, created by Stagehand

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate mserve

2. Use it

The package has the following executables:

$ mserve

Use this package as a library

1. Depend on it

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

  mserve: ^0.2.3

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:mserve/mserve.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 Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21


Detected platforms: Flutter, other

Primary library: package:mserve/mserve.dart with components: io.

Health suggestions

Fix bin/mserve.dart. (-0.50 points)

Analysis of bin/mserve.dart reported 1 hint:

line 35 col 10: Don't explicitly initialize variables to null.

Fix lib/mserve.dart. (-0.50 points)

Analysis of lib/mserve.dart reported 1 hint:

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

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

Analysis of lib/src/directories.dart reported 1 hint:

line 10 col 32: Use = to separate a named parameter from its default value.

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (intl).

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.

Package is getting outdated. (-15.07 points)

The package was last published 60 weeks ago.

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 mserve.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-dev <3.0.0
args ^1.0.0 1.5.2
cli_util ^0.1.3 0.1.3+2
http_parser ^3.0.0 3.1.3
http_server ^0.9.0 0.9.8+3
intl ^0.15.6 0.15.8 0.16.0
mime ^0.9.6 0.9.6+3
package_config ^1.0.3 1.1.0
path ^1.5.0 1.6.4
shelf ^0.7.2 0.7.5
shelf_static ^0.2.0 0.2.8
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
meta 1.1.7
source_span 1.5.5
stack_trace 1.9.3
stream_channel 2.0.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
test ^1.0.0