2.1.6 • Published 2 years ago

get-routes v2.1.6

Weekly downloads
492
License
MIT
Repository
github
Last release
2 years ago

get-routes

get-routes gets all routes from an Express application.

Status

CategoryStatus
Versionnpm
DependenciesDavid
Dev dependenciesDavid
BuildGitHub Actions
LicenseGitHub

Installation

$ npm install get-routes

Quick start

First you need to add a reference to get-routes to your application:

const { getRoutes } = require('get-routes');

If you use TypeScript, use the following code instead:

import { getRoutes } from 'get-routes';

Then, call the getRoutes function with an Express app to get a list of all registered routes:

const routes = getRoutes(app);

console.log(routes);
// => {
//      get: [
//        '/articles'
//      ],
//      post: [
//        '/articles/:id'
//      ],
//      ...
//    }

Running quality assurance

To run quality assurance for this module use roboter:

$ npx roboter
2.1.6

2 years ago

2.1.5

3 years ago

2.1.2

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.18

3 years ago

2.0.17

3 years ago

2.0.16

3 years ago

2.0.15

3 years ago

2.0.14

3 years ago

2.0.13

3 years ago

2.0.12

3 years ago

2.0.11

4 years ago

2.0.10

4 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

5 years ago

0.2.0

6 years ago

0.1.0

8 years ago