1.2.0 • Published 2 years ago
xmlhttp-req v1.2.0
http-req
Creates http requests using the node built-in http
module.
It's a polyfill for XmlHttpRequest in node, but it also contains some additional features like
var a = new XMLHttpRequest();
x.onreadystatechange = () => {
if(x.status == 200)
console.log(x.responseText);
}
a.postAPI({"Hello":"World"}) // sends an request to /api
1.2.0
2 years ago