Create stubby config based on HAR exported from Chrome
npm install -g har2stubby
har2stubby --source="file.har" --target="stubbs" --root="https://test.env.com/api" --latency=200
Right now we only make stubbs for responses with application/json mime type since it's the most common use case for REST API stubbs
source
--source
Path to HAR file.
target
--target
Path to directory where config and stub files will be stored
root
--root
Can be used to remove real server url from stubbs config e.g. your source HAR file has URLs like http://test-env.com/api/todos, you can set root = 'http://test-env.com' to save it like '/api/todos'
latency
--latency
Default latency for all requests to make it work more "production-like"