2.1.6 • Published 4 years ago
get-routes v2.1.6
get-routes
get-routes gets all routes from an Express application.
Status
| Category | Status |
|---|---|
| Version | |
| Dependencies | |
| Dev dependencies | |
| Build | |
| License |
Installation
$ npm install get-routesQuick 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 roboter2.1.6
4 years ago
2.1.5
4 years ago
2.1.2
4 years ago
2.1.4
4 years ago
2.1.3
4 years ago
2.1.1
5 years ago
2.1.0
5 years ago
2.0.18
5 years ago
2.0.17
5 years ago
2.0.16
5 years ago
2.0.15
5 years ago
2.0.14
5 years ago
2.0.13
5 years ago
2.0.12
5 years ago
2.0.11
5 years ago
2.0.10
5 years ago
2.0.9
5 years ago
2.0.8
5 years ago
2.0.7
5 years ago
2.0.6
5 years ago
2.0.5
5 years ago
2.0.4
5 years ago
2.0.3
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
6 years ago
1.0.0
6 years ago
0.2.0
8 years ago
0.1.0
9 years ago