Download all resources from HAR file
har-download demo.HAR export/folder
此命令将把 demo.HAR 中标记的资源下载到 export/folder 目录里面
fromText:
const har = require("har");
har.fromText(fs.readFileSync(harString, 'utf-8'), "./outPutDir/", function(err) {
console.log(err);
});
formFile:
const har = require("har");
har.formFile("demo.HAR", "./outPutDir/", function(err) {
console.log(err);
});
har-download demo.HAR export/folder