@chahakshah/har-to-ts
v1.0.6
Published
Create API file from HAR Session file
Downloads
9
Maintainers
Readme
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.tsThis 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

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

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

License
MIT
