1.0.0 • Published 7 years ago

simple-ajax-handler v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

Basic vanilla js ajax handler

Methods

Methods
.post(url, data, callback)
.get(url, callback)
.put(url, data, callback)
.delete(url, data, callback)

Example how to use it

var ajax = require('simple-ajax-handler');
var url = 'index.html';
var sendData = {
    // your data
};
ajax.post(url, sendData);