{"library":"unxhr","type":"library","category":null,"description":"`unxhr` is a Node.js library that provides an emulation of the browser's native `XMLHttpRequest` object, enabling both synchronous and asynchronous HTTP requests within Node.js environments. Currently at version 1.2.0, its release cadence is moderate, with recent updates primarily focused on bug fixes and infrastructure improvements. The project is a fork of the original `XMLHttpRequest` package, specifically developed to achieve compliance with the XMLHttpRequest Level 2 specifications. Key differentiators include its complete lack of external dependencies, support for standard HTTP methods (GET, POST, PUT, DELETE), handling of binary data through JavaScript typed arrays, automatic redirection following, and limited support for the `file://` protocol. It serves as a bridge for codebases that expect browser-like XHR behavior in a Node.js context, despite some inherent limitations compared to a full browser implementation.","language":"javascript","status":"active","version":"1.2.0","tags":["javascript","xhr","ajax","sync","http"],"last_verified":"Wed May 27","install":[{"cmd":"npm install unxhr","imports":["const XMLHttpRequest = require('unxhr').XMLHttpRequest;","const xhr = new XMLHttpRequest();"]},{"cmd":"yarn add unxhr","imports":[]},{"cmd":"pnpm add unxhr","imports":[]}],"homepage":null,"github":"https://github.com/mogztter/unxhr","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/unxhr","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/unxhr/compatibility"}}