1.0.0-alpha.1 • Published 2 years ago

@cross-nft-marketplace/xmlhttprequest v1.0.0-alpha.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
2 years ago

@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();