@cross-nft-marketplace/xmlhttprequest
v1.0.0-alpha.1
Published
XMLHttpRequest stub for Node
Downloads
15
Maintainers
Readme
@cross-nft-marketplace/xmlhttprequest
@cross-nft-marketplace/xmlhttprequest is a wrapper for the built-in http client to emulate the browser XMLHttpRequest object.
This can be used with JS designed for browsers to improve reuse of code and allow the use of existing libraries.
Note: This library currently conforms to XMLHttpRequest 1.
Usage
Here's how to include the module in your project and use as the browser-based XHR object.
var XMLHttpRequest = require("@cross-nft-marketplace/xmlhttprequest").XMLHttpRequest;
var xhr = new XMLHttpRequest();