npminstallfastlz.js
examplevarfs=require("fs");varpath="./need.js";vardata=fs.readFileSync(path);setTimeout(function(){vardecoder=newFastLZDecoder();vartest=newUint8Array(data);varbuffer=decoder.encode(test);varstart=2650074;varend=start+30;varbuffer2=decoder.decode(newUint8Array(buffer));fs.writeFileSync("invalidate.js",buffer2);fs.writeFileSync("compress.js",buffer);},500);italwaysrunpowerful.点击空白处退出提示
评论