0.0.2 • Published 1 year ago

express-markdown-static v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago