nero 1.0.0-dev+6

  • README.md
  • Installing
  • Versions
  • 40

nero

Microframework based on Express and angel_route. This framework is unrelated to Angel.

This is an experimental library, don't expect any future support.

main() {
  final app = new Nero();
  
  app.get('/', (req) => new Response.text('Hello, world!'));
  
  app.chain((req, next) async {
    req.properties['user'] = await someQuery(req.params.id);
  }).get('/user/:id', (req) {
    return new Response.json(req.user);
  });
}

1. Depend on it

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


dependencies:
  nero: "^1.0.0-dev+6"

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.

3. Import it

Now in your Dart code, you can use:


import 'package:nero/nero.dart';
        
Version Uploaded Documentation Archive
1.0.0-dev+6 Jan 28, 2017 Go to the documentation of nero 1.0.0-dev+6 Download nero 1.0.0-dev+6 archive
1.0.0-dev+5 Nov 23, 2016 Go to the documentation of nero 1.0.0-dev+5 Download nero 1.0.0-dev+5 archive
1.0.0-dev+4 Nov 22, 2016 Go to the documentation of nero 1.0.0-dev+4 Download nero 1.0.0-dev+4 archive
1.0.0-dev+3 Oct 23, 2016 Go to the documentation of nero 1.0.0-dev+3 Download nero 1.0.0-dev+3 archive
1.0.0-dev+2 Oct 23, 2016 Go to the documentation of nero 1.0.0-dev+2 Download nero 1.0.0-dev+2 archive
1.0.0-dev+1 Oct 23, 2016 Go to the documentation of nero 1.0.0-dev+1 Download nero 1.0.0-dev+1 archive
1.0.0-dev Oct 23, 2016 Go to the documentation of nero 1.0.0-dev Download nero 1.0.0-dev archive
1.0.0-beta Jan 28, 2017 Go to the documentation of nero 1.0.0-beta Download nero 1.0.0-beta archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Feb 7, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

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

Platforms

Detected platforms: other

Primary library: package:nero/nero.dart with components: io, mirrors.

Suggestions

  • Fix lib/src/router.dart.

    Strong-mode analysis of lib/src/router.dart failed with the following error:

    line: 8 col: 3
    Invalid override. The type of 'Router.group' ('(Pattern, (Router) → void, {middleware: Iterable<dynamic>, name: String, namespace: String}) → Route') isn't a subtype of 'Router.group' ('(Pattern, (Router) → void, {middleware: Iterable<dynamic>, name: String, namespace: String}) → SymlinkRoute').

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Fix issues reported by dartanalyzer.

    dartanalyzer reported 1 error(s) and 0 warning(s).

  • Package is pre-release.

    Pre-release versions should be used with caution, their API may change in breaking ways.

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

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use nero.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.18.0
angel_route ^1.0.0-dev 1.0.8 2.0.5
body_parser ^1.0.0-dev 1.0.3
heaven ^1.0.0-dev 1.0.0-dev+3
json_god ^2.0.0-beta 2.0.0-beta+1
mime ^0.9.3 0.9.6
path ^1.4.0 1.5.1
Transitive dependencies
angel_framework 1.0.11 1.1.1
angel_model 1.0.0
charcode 1.1.1
container 0.1.2
flatten 1.0.0
http_server 0.9.7
merge_map 1.0.0
meta 1.1.2
quiver_hashcode 1.0.0
random_string 0.0.1
tuple 1.0.1
Dev dependencies
http ^0.11.3
test ^0.12.15