Skip to content

chahakshahcs5/har-to-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

har-to-ts

A command-line tool to convert HAR (HTTP Archive) files into TypeScript SDKs.

Installation

npm install -g .

Usage

har-to-ts <sourcefile> <destinationfile>

Arguments

  • <sourcefile>: The path to the source HAR file.
  • <destinationfile>: The path to the destination TypeScript file.

Example

har-to-ts session.har api.ts

This will read the HAR file session.har and generate the TypeScript SDK in api.ts.

How to get HAR file

  • Open any website for which you want to generate API file

  • Open Developer Tools and click on settings alt text

  • Check Preserve Log, Record Network Log And Allow to generate HAR with sensitive data alt text

  • Clear Network Log and Refresh Page and surf and explore entire website and then click Download Icon alt text

License

MIT

About

Create API file from HAR Session file

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors