Necessary Pigeonholing Mechanism
Wondering what’s next for npm?Check out our public roadmap! »

expresso-router
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Install

npm i expresso-router

DownloadsWeekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

47.9 kB

Total Files

25

Last publish

Collaborators

  • avatar