JSteunou / express-routes-visualizer

Visualize express routes using D3.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

express-routes-visualizer

Build Status NPM Version Coverage

An express middleware and endpoint for viewing your app's route hierarchy.

Hackathon Starter Example

Note, this isn't working with express.Router() instances at the moment.

Installation

npm install --save express-routes-visualizer

Usage

const { middleware, visualizer } = require('express-routes-visualizer')

app.use(
  '/routes',
  middleware({ httpMethods: false }),
  visualizer({ theme: 'dark-blue' })
)

Themes

See ./themes.md for visuals of each scheme.

  • plain - a plain scheme with a light background
  • light-gray - a simple light grayscale theme
  • dark-gray - a simple dark grayscale theme
  • dark-blue - a darker blue theme loosely based on the Atom Nord theme
  • burn - a low-contrast scheme inspired by Zenburn

License

MIT © Forrest Desjardins

About

Visualize express routes using D3.js

License:MIT License


Languages

Language:JavaScript 61.7%Language:HTML 38.3%