modern-xhr-wrapper
v0.1.1
Published
A micro-sized wrapper for native XMLHttpRequest
Downloads
1
Readme
Usage
var ajax = require('modern-xhr-wrapper');
ajax.get({
url: 'https://api.example.com/v1/users',
success: function (response) {
console.log('Success!');
},
error: function (response) {
console.log('Uh oh! There was an error.');
}
});