New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

express-dot-doc

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-dot-doc

Super easy Express API documentation

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

express-dot-doc

Is your Express API documentation always out of date?

Usage

import express from 'express'
import expressDoc from 'express-dot-doc'

const app = express()
app.get('/ducks', () => {})
app.get('/pandas', () => {})
const opts = {path: '/api-documentation'}
expressDoc(app, opts)

app.listen(6505)

and go to http://localhost:6505/api-documentation

Opts

PropertyExplanation
pathDocumentation api path. Defaults to /api-documentation

How

Library uses app._router.stack to find routes registered to express server. This is the reason why you need to add expressDoc(app) after your routes.

Random thoughts

React is probably a bit heavy tool for rendering the response..!

Keywords

express

FAQs

Package last updated on 05 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts