xuxiaobo-bobo fdfd6d6cf1 '0421'
2023-04-21 12:28:19 +08:00

28 lines
582 B
JavaScript

var fs=require("fs");
var path = require("path");
function getFile(name) {
let tools_path = path.resolve(__dirname, '../tools/');
try {
return fs.readFileSync(`${tools_path}/${name}.js`) + "\r\n";
} catch (e) {
console.log(`${tools_path}/${name}.js不存在`)
return "";
}
}
function getCode(){
let code=""
code+=getFile("toolsFunc")
// code+=getFile("toolsJsSoup")
// code+=getFile("toolsParseHtml")
code+=getFile("envFunc")
code+=getFile("toolsPlugin")
return code
}
module.exports={
getCode,getFile
}