koa-static-markdown

1.0.1 • Public • Published

koa-static-markdown

NPM version

An static resource server in koa, which transform markdown file to html. It let you get html file directly when you visit the markdown file in the static directory you specified in config.

Installation

requires node v7.6.0

$ npm install koa-static-markdown

Example

const Koa = require('koa');
const app = new Koa();
const server = require('koa-static-markdown')

app.use( server({path:'/doc',
    root:'./static',
    css:"http://example.com/markdown.css"}) );

app.listen(3000);

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i koa-static-markdown

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • xuxiaoyu