npm.io
1.1.3 • Published 5 years ago

ayoba-api-mock

Licence
ISC
Version
1.1.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0

AYOBA API MOCK

This module mock the request of ayoba microApp api's endpoint response.

To use this module on Vanilla javascript.

1.Create another directory:

-mkdir <"directory_name">

2.Switch into the directory:

-cd <"directory_name">

3.Create your script eg: index.js:
    const ayoba = require('ayoba-api-mock');

    getSelfJid(){
        return ayoba.getSelfJid();
    }
    
4.Create the index.js node project:

-npm init

5.Install ayoba-api-mock module:

-npm install ayoba-api-mock

6.Execute the index.js script:

-node test.js