mserve 0.2.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 50

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.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:


dependencies:
  mserve: "^0.2.1"

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 flutter packages 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';
  
Version Uploaded Documentation Archive
0.2.1 Jun 2, 2018 Go to the documentation of mserve 0.2.1 Download mserve 0.2.1 archive
0.2.0 Jun 2, 2018 Go to the documentation of mserve 0.2.0 Download mserve 0.2.0 archive
0.1.3 Apr 17, 2018 Go to the documentation of mserve 0.1.3 Download mserve 0.1.3 archive
0.1.2 Jul 4, 2015 Go to the documentation of mserve 0.1.2 Download mserve 0.1.2 archive
0.1.1 Jun 27, 2015 Go to the documentation of mserve 0.1.1 Download mserve 0.1.1 archive
0.1.0 Jun 25, 2015 Go to the documentation of mserve 0.1.0 Download mserve 0.1.0 archive

Analysis

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

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

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

Platforms

Detected platforms: Flutter, other

Primary library: package:mserve/mserve.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.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • 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 mserve.dart.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 4 hints.

    Strong-mode analysis of lib/src/directories.dart gave the following hint:

    line: 173 col: 49
    'CONTENT_TYPE' is deprecated and shouldn't be used.

    Strong-mode analysis of lib/src/packages.dart gave the following hint:

    line: 107 col: 17
    'CONTENT_LENGTH' is deprecated and shouldn't be used.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.30 <2.0.0
args ^1.0.0 1.4.3
cli_util ^0.1.3 0.1.3
http_parser ^3.0.0 3.1.2
http_server ^0.9.0 0.9.7
intl ^0.15.6 0.15.6
mime ^0.9.6 0.9.6+1
package_config ^1.0.3 1.0.3
path ^1.5.0 1.6.1
shelf ^0.7.2 0.7.3+1
shelf_static ^0.2.0 0.2.7+1
Transitive dependencies
async 2.0.7
charcode 1.1.1
collection 1.14.10
convert 2.0.1
source_span 1.4.0
stack_trace 1.9.2
stream_channel 1.6.7+1
string_scanner 1.0.2
typed_data 1.1.5
Dev dependencies
test ^0.12.0