Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/izelnakri/express-routemap
Display all your express routes in the terminal!
https://github.com/izelnakri/express-routemap
developer-tools express node routing
Last synced: 5 days ago
JSON representation
Display all your express routes in the terminal!
- Host: GitHub
- URL: https://github.com/izelnakri/express-routemap
- Owner: izelnakri
- License: mit
- Created: 2016-11-15T14:39:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T03:49:42.000Z (about 2 years ago)
- Last Synced: 2024-12-07T19:37:37.818Z (15 days ago)
- Topics: developer-tools, express, node, routing
- Language: JavaScript
- Size: 85.9 KB
- Stars: 133
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Display all your express routes in the terminal!
![](http://g.recordit.co/PhGRKSCZjL.gif)
# HOW TO:
```npm install express-routemap```
```js
// in your index.js:const express = require('express'),
displayRoutes = require('express-routemap');var app = express();
var adminRouter = require('./routes/admin');
app.use('/admin', adminRouter);
app.get('/', (req, res) => {
res.render('index');
});app.listen(3000, () => {
console.log('Web server started at port 3000!');
// HERE IS THE FUN PART:
displayRoutes(app);// or use like this
displayRoutes(app, 'route-table.log');
});
```