har-to-mockoon
v1.0.0
Published
Converts HAR to Mockoon JSON
Readme
HAR to Mockoon
A simple, yet powerfull utility that converts a HAR file (that's an HTTP Archive) to a valid Mockoon-readable JSON for mocking APIs, so that you can test real world scenario with real world data, right in your local device, thus strengthening your debugging capabilities.
Usage
- Install with
npm i -g har-to-mockoon - Run with
har-to-mockoon --file="PATH_TO.har" --port=OPTIONAL_PORT_NUMBER
Development
- Clone the project locally
- Install dependencies with
npm i - Compile the project with
npm run build - Run the tool with
node .\dist\main.js --file="PATH_TO.har" --port=OPTIONAL_PORT_NUMBER - A
.jsonMockoon file will be outputted in the same path where the HAR file is located
Contributions
This utility has been tested succesfully with Mockoon 9.2.0.
But as Mockoon will evolve, the same will happen with its JSON mock files. Should breaking changes arise while I'm still using this utility, I'll update this one accordingly.
Anyway, contributions are always welcome to improve or fix bugs!
