jaguar_examples_static_file 2.2.0

  • Readme
  • Changelog
  • Installing
  • 30

static_file #

Example to demonstrate serving static files using Jaguar. Uses staticFiles method on Jaguar object.

import 'package:jaguar/jaguar.dart';
import 'package:path/path.dart' as p;

main(List<String> arguments) async {
  final server = new Jaguar(port: 10001);

  // Serve with prefix stripped. Similar to 'alias' in Nginx.
  server.staticFiles('/static/*', 'static');

  await server.serve();

Instructions #

Instructions can be found at: Serving static files

Changelog #

0.0.1 #

  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

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

  jaguar_examples_static_file: ^2.2.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

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

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

  • Dart: 2.8.4
  • pana: 0.13.9+1

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: Documenting jaguar_examples_static_file... Initialized dartdoc with 37 libraries in 39.0 seconds Validating docs... no issues found Documented 0 public libraries in 7.5 seconds stderr: Unhandled exception: dartdoc could not find any libraries to document #0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:218:9)

Package is getting outdated. (-88.22 points)

The package was last published 98 weeks ago.

The package description is too short. (-3 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 Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.65.0 <3.0.0
jaguar ^2.2.0 2.4.43
path ^1.6.2 1.7.0
Transitive dependencies
auth_header 2.1.4
charcode 1.1.3
collection 1.14.13
convert 2.1.1
crypto 2.1.5
http_server 0.9.8+3
jaguar_common 2.1.4
jaguar_serializer 2.2.12
logging 0.11.4
meta 1.1.8 1.2.0
mime 0.9.6+3
path_tree 2.2.2
stack_trace 1.9.5
typed_data 1.2.0