har-download
1.0.4 • Public • Published
har-download 从 HAR 文件下载整个网站资源
Download all resources from HAR file
har-download demo.HAR export/folder
此命令将把 demo.HAR 中标记的资源下载到 export/folder 目录里面
Get HAR from chrome dev tool
API
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);
});
CLI
har-download demo.HAR export/folder
Package Sidebar
Install
Weekly Downloads