Need help with express-routemap?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

izelnakri
130 Stars 1 Forks MIT License 11 Commits 1 Opened issues

Description

Display all your express routes in the terminal!

Services available

!
?

Need anything else?

Contributors list

Display all your express routes in the terminal!

HOW TO:

npm install express-routemap
  // 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');

});

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.