1.0.2 • Published 3 years ago

expresso-router v1.0.2

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

expresso-router

example workflow name

A faster, safer, backwards compatible router alternative for Express.

const express = require('express');
const expresso = require('expresso-router');
const router = expresso();

router.get('/', function (req, res) {
  res.send('Hello World');
});

app.use(router);

app.listen(3000);

Installation

npm install expresso-router

Features

Speed

Compatibility

Safety

  • Prevents common sources of error by default by throwing easy-to-understand exceptions when creating invalid or overlapping routes
  • Disallows suboptimal choices, such as regular expression routes, unless explicitly allowed
  • Order independent. The order you add routes shouldn't matter. Expresso will match by specificity.

Documentation and migration information.

More detailed API documentation

License

MIT