2.1.2 • Published 7 months ago

sb-fake-json v2.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

sb-fake-json

A library for mocking data in Sunbird Ed-Portal as Fallback

Installation

You can install this library using npm or yarn:

npm install sb-fake-json

or

yarn add sb-fake-json

Usage

In your JavaScript or TypeScript code, you can use this library to access mock data for various purposes. Import it as follows:

import * as MockData from 'sb-fake-json';

const response = MockData.getMockResponseData('component_name');

To import single mock data

import { getLocationMockData } from 'sb-fake-json';

const response = getMockResponseData('component_name')

Mock Data

  • getMockResponseData('explore-page'): Retrieve mock response mock for explore page component.

Test Mock Data

Add the mock location of data and run node testMockData.js

Author

Tushar Mithun Lokanathan

Contact

If you have any questions or suggestions, feel free to contact me at mithun@sedintechnologies.com, tushar@sedintechnologies.com.

2.1.2

7 months ago

2.1.1

7 months ago

2.0.0

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago