New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mroutes

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mroutes

mount-routes-fix = auto mount express routes with routes_folder_path

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

mount-routes

mount-routes = auto mount express routes with routes_folder_path

gitter NPM version

Install

npm install --save mount-routes

Usages

var express = require('express')
var app = express()

var mount = require('mount-routes');

// simple
// mount(app);
// with path
// mount(app, __dirname + '/routes2');

// with path & api dump
mount(app,  __dirname + '/routes2', true);

// start server
app.listen(23018)

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

版本历史

  • v1.0.3 add api dump feature
  • v1.0.2 rename index to /
  • v1.0.0 初始化版本

欢迎fork和反馈

如有建议或意见,请在issue提问或邮件

License

this repo is released under the MIT License.

Keywords

express

FAQs

Package last updated on 05 Jan 2016

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