Skip to content

fengshux/koa-static-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a static server for markdown file relies on koa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published