Skip to content

ibrahimturkmen27/xhrAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xhrAPI Build Status

An XHR library that is using proxy object and returns promise as the response of the server.

Usage

"use strict";
const xhrAPI = require(xhrapi);
const options = { 
                  query: "anyQuery",                  // {"key1": "value2", "key2": "value2"}
                  header: {"anyType": "anyHeader"},
                  data: "anyData"                     // array or object
                };
xhrAPI.anyMethod("url", options);

Test

sinon.js and jest testing frameworks were used for testing this library. To run the test, enter npm t command to the terminal.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages