0.0.2 • Published 3 years ago

express-markdown-static v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Express Markdown Static

Serve static files while also rendering Markdown.

Installation

npm install express-markdown-static

To use

Register the exported markdownStatic RequestHandler.

Parameters:

  • baseDir (string) - the base directory to serve static files from

  • options (object) - the options to pass to the middleware

    • options.extensions (string[]) - The extensions to be interpreted as markdown. Default: ['.md', 'markdown']

    • options.extensionsRequired (bool) - If false, than files without extensions are interpreted as Markdown. Default: true

import markdownStatic from 'express-markdown-static'

app.get('/docs', markdownStatic('/documentation'))
0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago