super-easy-jquery-ajax

2.0.2 • Public • Published

super-easy-jquery-ajax

Super Easy Ajax is a simple way to make a HTTP or HTTPS request on the web.

Install

npm i super-easy-jquery-ajax

Usage

import ajax from "super-easy-jquery-ajax";

ajax("https://example.com/", null, "GET", "html").then(data => {

  console.log(data)

});

The ajax function has 4 args that are url for the url to fetch the data from, data to send with the request, type the type of the request like GET and POST, dataType the data type returned by the request this can be xml, json, script, or html.

Readme

Keywords

Package Sidebar

Install

npm i super-easy-jquery-ajax

Weekly Downloads

2

Version

2.0.2

License

ISC

Unpacked Size

93.1 kB

Total Files

6

Last publish

Collaborators

  • aixoio