@puredizzi/express-routes
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Express Routes

Display a table of all your express routes.

Installation

npm i @puredizzi/express-routes

Usage

Import module in your main file.

import expressRoutes from '@puredizzi/express-routes'

Provide the express app to the expressRoutes module at the end of the file.

expressRoutes(app, {
  baseURL: 'https:/www.example.com',
  display: 'table'
})

Another example using the returned array.

const routes = expressRoutes(app, {
  baseURL: 'https:/www.example.com'
})

console.table(routes)

Readme

Keywords

Package Sidebar

Install

npm i @puredizzi/express-routes

Weekly Downloads

6

Version

1.1.0

License

ISC

Unpacked Size

33.6 kB

Total Files

12

Last publish

Collaborators

  • puredizzi