har2stubby

3.1.0 • Public • Published

har2stubby

Create stubby config based on HAR exported from Chrome

Installation

npm install -g har2stubby

Usage

har2stubby --source="file.har" --target="stubbs" --root="https://test.env.com/api" --latency=200

Limitations

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

Options

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"

/har2stubby/

    Package Sidebar

    Install

    npm i har2stubby

    Weekly Downloads

    2

    Version

    3.1.0

    License

    MIT

    Unpacked Size

    7.62 MB

    Total Files

    39

    Last publish

    Collaborators

    • zessiss