0.0.2 • Published 2 years ago

express-markdown-static v0.0.2

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

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago