Skip to content

WebbyLab/express-markdown-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

#Express-Markdown-Browser

Express middleware for viewing documentation in markdown

Install

npm install express-markdown-browser --save

Usage

For route:

var Emb = require('express-markdown-browser');
var emb = new Emb({path: __dirname + "/apidoc"});

var app = express();

app.get('/apidoc', emb);

After GET request to http:/yoursite.com/apidoc you will see specifications list for you project.

For all request without route:

var Emb = require('express-markdown-browser');
var emb = new Emb({path: __dirname + "/apidoc"});

var app = express();

app.get('/echo', function(req, res){
    res.send("echo");
});

app.get('/echo2', function(req, res){
    res.send("echo2");
});

app.use(emb);

After GET request to any free route (example: http://yoursite.com/somthing or http://yoursite.com/3242) you will see specifications list for you project.

Contribution and License Agreement

If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work. </legalese>

License

Copyright (c) 2014, Webbylab. (MIT License)

See LICENSE for more info.

About

Express middleware for viewing documentation in markdown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published