@nanoexpress/middleware-redoc
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

ReDoc

redoc middleware for nanoexpress swagger

Installation

npm i @nanoexpress/middleware-redoc
# or
yarn add @nanoexpress/middleware-redoc

Usage

See here for more info

ESM Module

import reDoc from '@nanoexpress/middleware-redoc';

app.define(swagger); // For nanoexpress this line doesn't need
app.use(reDoc());

CJS Module

const reDoc = require('@nanoexpress/middleware-redoc/cjs');

app.define(swagger); // For nanoexpress this line doesn't need
app.use(reDoc());

Options

Options name Default Required Description
options.title nanoexpress - ReDoc No Title of documentation page
options.path /docs No Path of documentation page
options.url - No URL of Swagger file

License

MIT

/@nanoexpress/middleware-redoc/

    Package Sidebar

    Install

    npm i @nanoexpress/middleware-redoc

    Weekly Downloads

    5

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    9.73 kB

    Total Files

    6

    Last publish

    Collaborators

    • dalisoft