1.1.0 • Published 12 months ago

@puredizzi/express-routes v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

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)
1.1.0

12 months ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago