/**
 * @file 读取配置信息
 * @author treelite(c.xinle@gmail.com)
 */

/**
 * 读取配置信息
 *
 * @public
 * @param {string} file
 * @return {*}
 */
module.exports = function (file) {
    var fs = require('fs');
    var path = require('path');
    var res;

    if (fs.existsSync(file)) {
        file = fs.readFileSync(file, 'utf8');
        res = JSON.parse(file);
    }

    return res;
};

@@ -75,11 +75,24 @@
 %E7%BD%AE%E4%BF%A1%E6%81%AF%0A
+ * json%E5%90%8E%E7%BC%80%E5%90%8D%E6%96%87%E4%BB%B6%0A
  *%0A
-
  * @
@@ -208,40 +208,8 @@
 ');%0A
-    var path = require('path');%0A
     
@@ -261,69 +261,20 @@
     
-file = fs.readFileSync(file, 'utf8');%0A        res = JSON.pars
+res = requir
 e(fi

use node's module to load config