express-explorer

0.4.1 • Public • Published

Express Expolorer

Autodiscovering route explorer for every Express.js application.

Installation

npm install express-explorer

Usage

const express = require('express');
const explorer = require('express-explorer');
const app = new express();
  
//settings params is optional and these are default values:
const settings = {
  format: 'html'
};
  
app.use('/explorer', explorer(settings));

Settings

  • format: html (default) or json. If param is html you will get the explorer panel otherwise all discovered routes are served as a json. Even if you chose to get the html panel you can require the json format passing the query string ?format=json to the endpoint you chose for the explorer (ex. /explorer?format=json).

Package Sidebar

Install

npm i express-explorer

Weekly Downloads

3

Version

0.4.1

License

MIT

Last publish

Collaborators

  • alessandromessori
  • giovanni.bruno