jaguar_examples_static_file 2.2.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 42

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:


dependencies:
  jaguar_examples_static_file: ^2.2.0

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.

Version Uploaded Documentation Archive
2.2.0 Aug 14, 2018 Go to the documentation of jaguar_examples_static_file 2.2.0 Download jaguar_examples_static_file 2.2.0 archive
2.1.1 Jul 13, 2018 Go to the documentation of jaguar_examples_static_file 2.1.1 Download jaguar_examples_static_file 2.1.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
60
Overall:
Weighted score of the above. [more]
42
Learn more about scoring.

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

  • Dart: 2.0.0
  • pana: 0.12.3

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Issues and suggestions

Running dartdoc failed.

Make sure dartdoc runs without any issues.

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.

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 jaguar_examples_static_file.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.65.0 <3.0.0
jaguar ^2.2.0 2.4.4
path ^1.6.2 1.6.2
Transitive dependencies
auth_header 2.1.2
charcode 1.1.2
collection 1.14.11
convert 2.0.2
crypto 2.0.6
http_server 0.9.8
jaguar_common 2.1.4
logging 0.11.3+2
mime 0.9.6+2
path_tree 2.2.2
stack_trace 1.9.3
typed_data 1.1.6