Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

imockit

imockit client integration kit. Intercept APIs & get mocked responses. Integrate imockit SDK with your codebase in seconds

mock, api, mock api, simulate api, mock server, mock multiple responses, api response, visitor prioritization, throttle api

readme

README

imockit npm package can be used to intercept APIs and return mock responses created by you on your personalized dashboard on imockit

How to set up?

Prerequisites

Installation

Install the package using npm or yarn:

npm install imockit --save
OR
yarn add imockit

How to use?

  • Import the package in your code
    import imockit from 'imockit';
  • Initialize the SDK using Access Token (Generate access token here)

    imockit('<ACCESS_TOKEN>').initialize();
  • You can also access imockit object in your browser from window object:

      window.imockit

    And initialize it directly from window:

      window.imockit('<ACCESS_TOKEN>').initialize();

About Us

https://www.imockit.com is one of the many ways to mock your APIs. But it's SIMPLE.

  • Easy to mock APIs: Run your flows easily; minimize dev and testing effort
  • User friendly: Simple and easy to use; rich and powerful features
  • Easy Integration: The easiest integration ever; works like a charm

Who do I talk to?

For queries, email us: info@imockit.com