摘要:
require("./m3m4") var http = require('http'); var server = http.createServer(); server.listen(100, function () { var port = server.address().port; console.log('HTTP(s) proxy server listenin... 阅读全文
摘要:
function mkdir(filepath){ var path=require("path") if(!fs.existsSync(path.dirname(filepath))){ mkdir(path.dirname(filepath)) } if(!fs.existsSync(filepath)){ fs.mkdirSy... 阅读全文
摘要:
function regDir(str){ var reg=str if(typeof reg=="string"){ reg=reg.replace(/[\[\]\\\^\:\.\?\+]/g,function(m){ return "\\"+m; }) reg=reg.replace(/\*\*|\*/g... 阅读全文