tianmajs / autoupdate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autoupdate

autoupdate 赋予模块自动更新版本的能力。

安装

    $ npm install autoupdate

使用

模块文件:index.js

var update = require('autoupdate');
// 模块入口
module.exports = function (type, config) {
    update(function () {
        require('./conf/' + type)(config);
    });
};

授权协议

MIT

About


Languages

Language:JavaScript 100.0%