Socket
Socket
Sign inDemoInstall

express-markdown-browser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-markdown-browser

Express middleware for viewing documentation in markdown from browser


Version published
Weekly downloads
32
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 09 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc