Synchronous and asynchronous XMLHttpRequest for Node
unxhr is a tiny wrapper of the built-in http
client to emulate the browser XMLHttpRequest
object.
Important: This library is a fork of XMLHttpRequest. It was created to be compliant with XMLHttpRequest Level 2.
GET
, POST
, PUT
, and DELETE
requestsfile://
protocolHere's how to include the module in your project and use as the browser-based XHR object.
const XMLHttpRequest = require('unxhr').XMLHttpRequest
const xhr = new XMLHttpRequest()
For a list of open issues or to report your own visit the github issues page.
MIT license. See LICENSE for full details.