serve 3.0.1 copy "serve: ^3.0.1" to clipboard
serve: ^3.0.1 copied to clipboard

CLI to serve static files in a directory as a HTTP server like Python's SimpleHTTPServer.

7
likes
110/ 140
pub points
0%
popularity

We analyzed this package 10 hours ago, and awarded it 110 pub points (of a possible 140):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

failed
Provide documentation
0 / 20trigger folding of the section

0/10 points: 20% or more of the public API has dartdoc comments

0 out of 9 API elements (0.0 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

Some symbols that are missing documentation: serve, serve.Conf, serve.Conf.Conf, serve.Conf.basePaths, serve.Conf.dirs.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:serve/serve.dart that imports:
  • package:jaguar/jaguar.dart that imports:
  • dart:io
partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

INFO: The import of 'package:jaguar/jaguar.dart' is unnecessary because all of the used elements are also provided by the import of 'dart:io'.

bin/serve.dart:4:8

  ╷
4 │ import 'package:jaguar/jaguar.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze bin/serve.dart

INFO: Using a colon as the separator before a default value is deprecated and will not be supported in language version 3.0 and later.

lib/serve.dart:18:42

   ╷
18 │ Future<void> serve(Conf config, {bool log: false}) async {
   │                                          ^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/serve.dart

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
args ^2.1.0 2.5.0 2.5.0
jaguar ^3.0.11 3.1.3 3.1.3
path ^1.8.0 1.9.0 1.9.0
Transitive dependencies
Package Constraint Compatible Latest
auth_header - 3.0.1 3.0.1
collection - 1.18.0 1.18.0
crypto - 3.0.3 3.0.3
http_server - 1.0.0 1.0.0
jaguar_common - 3.0.0 3.0.0
logging - 1.2.0 1.2.0
meta - 1.14.0 1.14.0
mime - 1.0.5 1.0.5
path_tree - 3.0.0 3.0.0
stack_trace - 1.11.1 1.11.1
typed_data - 1.3.2 1.3.2

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.3, Dart 3.3.3.

Check the analysis log for details.

7
likes
110
pub points
0%
popularity

Publisher

unverified uploader

CLI to serve static files in a directory as a HTTP server like Python's SimpleHTTPServer.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

args, jaguar, path

More

Packages that depend on serve