Skip to content

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

License

Notifications You must be signed in to change notification settings

newtang/expresso

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •