mount-plugins = auto mount express plugins with plugins_folder_path
npm install --save mount-plugins
var express = require('express')
var app = express()
var mount = require('mount-plugins');
// simple
// mount(app);
// with path
// mount(app, 'plugins');
// with path & api dump
// mount(app, 'plugins2', true);
// with path & pre & api dump
mount(app, 'plugins2','app/routes', true);
// start server
app.listen(23018)
- 增加生命周期
- 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.0 初始化版本
- write by
i5ting
shiren1118@126.com
如有建议或意见,请在issue提问或邮件
this repo is released under the MIT License.