mount_plugin
v1.0.0
Published
mount plugins = auto mount express plugins with plugins_folder_path
Downloads
22
Readme
mount plugins
mount plugins = auto mount express plugins with plugins_folder_path
Install
npm install --save mount-plugins
Usages
var express = require('express')
var app = express()
var mount = require('mount-plugins');
mount(app, 'plugins');
mount(app, 'plugins', true);
- app must be an express obj
- plugins is a folder that contain plugins
- debug=true
Plugin Example
module.exports = function(app) {
console.log('mount plugins ...');
}
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和反馈
- write by
i5ting
[email protected]
如有建议或意见,请在issue提问或邮件
License
this repo is released under the MIT License.