🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

har-down

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

har-down

har download 从 chrome 生成的 har 文件中下载整个网站所有资源

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

NPM

NPM version Build Status

har-download 从 HAR 文件下载整个网站资源

fork之后增加

  • 下载进度显示
  • 又之前的单线程改为默认12线程下载
  • 下载完成之后给出统计信息

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

Keywords

HAR-down

FAQs

Package last updated on 03 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts