{"_id":"unxhr","_rev":"2225860","name":"unxhr","description":"Synchronous and asynchronous XMLHttpRequest for Node","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"ggrossetie","email":"ggrossetie@gmail.com"}],"time":{"modified":"2022-01-08T16:05:30.000Z","created":"2018-12-20T16:46:12.165Z","1.2.0":"2021-02-11T16:57:48.364Z","1.1.1":"2021-01-05T08:39:48.759Z","1.1.0":"2020-11-14T18:06:21.681Z","1.0.4":"2020-05-17T17:59:29.906Z","1.0.3":"2020-05-17T16:32:19.634Z","1.0.2":"2020-05-17T15:16:09.636Z","1.0.1":"2018-12-20T20:38:34.058Z","1.0.0":"2018-12-20T16:46:12.165Z"},"users":{},"repository":{"type":"git","url":"git://github.com/mogztter/unxhr.git"},"versions":{"1.2.0":{"name":"unxhr","description":"Synchronous and asynchronous XMLHttpRequest for Node","version":"1.2.0","scripts":{"test":"mocha tests/test-*.js && ts-node node_modules/mocha/lib/cli/cli.js tests/test-request.js","lint":"standard tests/**.js lib/**.js example/**.js","lint-fix":"npm run lint -- --fix"},"authors":["Dan DeFelippi (http://driverdan.com)","Guillaume Grossetie (https://github.com/mogztter)","David Jencks (https://gitlab.com/djencks)"],"keywords":["xhr","ajax","sync","http"],"license":"MIT","repository":{"type":"git","url":"git://github.com/mogztter/unxhr.git"},"browser":{"fs":false,"child_process":false},"bugs":{"url":"http://github.com/mogztter/unxhr/issues"},"engines":{"node":">=8.11"},"directories":{"lib":"./lib","example":"./example"},"main":"./lib/XMLHttpRequest.js","devDependencies":{"chai":"4.3.0","dirty-chai":"2.0.1","get-port":"5.1.1","mocha":"8.2.1","standard":"16.0.3","ts-node":"^9.1.1","typescript":"^4.1.3"},"standard":{"env":["mocha"]},"gitHead":"8c99b2e36072da60ca19c161bd2a872117627772","homepage":"https://github.com/mogztter/unxhr#readme","_id":"unxhr@1.2.0","_nodeVersion":"14.15.4","_npmVersion":"7.5.2","dist":{"shasum":"44d391cb882c268a2909cd258a9a4f1941a6cf57","size":8473,"noattachment":false,"key":"/unxhr/-/unxhr-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unxhr/download/unxhr-1.2.0.tgz"},"_npmUser":{"name":"ggrossetie","email":"ggrossetie@gmail.com"},"maintainers":[{"name":"ggrossetie","email":"ggrossetie@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unxhr_1.2.0_1613062668203_0.3297442502400818"},"_hasShrinkwrap":false,"publish_time":1613062668364,"_cnpm_publish_time":1613062668364},"1.1.1":{"name":"unxhr","description":"Synchronous and asynchronous XMLHttpRequest for Node","version":"1.1.1","scripts":{"test":"mocha tests/test-*.js && ts-node node_modules/mocha/lib/cli/cli.js tests/test-request.js","lint":"standard tests/**.js lib/**.js example/**.js","lint-fix":"npm run lint -- --fix"},"authors":["Dan DeFelippi (http://driverdan.com)","Guillaume Grossetie (https://github.com/mogztter)","David Jencks (https://gitlab.com/djencks)"],"keywords":["xhr","ajax","sync","http"],"license":"MIT","repository":{"type":"git","url":"git://github.com/mogztter/unxhr.git"},"browser":{"fs":false,"child_process":false},"bugs":{"url":"http://github.com/mogztter/unxhr/issues"},"engines":{"node":">=8.11"},"directories":{"lib":"./lib","example":"./example"},"main":"./lib/XMLHttpRequest.js","devDependencies":{"chai":"4.2.0","dirty-chai":"2.0.1","get-port":"5.1.1","mocha":"8.2.1","standard":"16.0.3","ts-node":"^9.1.1","typescript":"^4.1.3"},"standard":{"env":["mocha"]},"gitHead":"87da78d926ad5161223861ec40be74bcb66e4dec","homepage":"https://github.com/mogztter/unxhr#readme","_id":"unxhr@1.1.1","_nodeVersion":"14.11.0","_npmVersion":"6.14.10","dist":{"shasum":"c86ff2cb5814e0180f7c5508f97ccd0e60a5631c","size":8389,"noattachment":false,"key":"/unxhr/-/unxhr-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unxhr/download/unxhr-1.1.1.tgz"},"_npmUser":{"name":"ggrossetie","email":"ggrossetie@gmail.com"},"maintainers":[{"name":"ggrossetie","email":"ggrossetie@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unxhr_1.1.1_1609835988662_0.2260024437935957"},"_hasShrinkwrap":false,"publish_time":1609835988759,"_cnpm_publish_time":1609835988759},"1.1.0":{"name":"unxhr","description":"Synchronous and asynchronous XMLHttpRequest for Node","version":"1.1.0","scripts":{"test":"mocha tests/test-*.js","lint":"standard tests/**.js lib/**.js example/**.js","lint-fix":"npm run lint -- --fix"},"authors":["Dan DeFelippi (http://driverdan.com)","Guillaume Grossetie (https://github.com/mogztter)","David Jencks (https://gitlab.com/djencks)"],"keywords":["xhr","ajax","sync","http"],"license":"MIT","repository":{"type":"git","url":"git://github.com/mogztter/unxhr.git"},"browser":{"fs":false,"child_process":false},"bugs":{"url":"http://github.com/mogztter/unxhr/issues"},"engines":{"node":">=8.11"},"directories":{"lib":"./lib","example":"./example"},"main":"./lib/XMLHttpRequest.js","devDependencies":{"chai":"4.2.0","dirty-chai":"2.0.1","get-port":"5.1.1","mocha":"8.2.1","standard":"16.0.2"},"standard":{"env":["mocha"]},"gitHead":"4b9cb6daf90273e44b6d653ecebef3cacd44047b","homepage":"https://github.com/mogztter/unxhr#readme","_id":"unxhr@1.1.0","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"shasum":"1f2fff238941b71e469b67a2127f400902c0721f","size":8335,"noattachment":false,"key":"/unxhr/-/unxhr-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unxhr/download/unxhr-1.1.0.tgz"},"_npmUser":{"name":"ggrossetie","email":"ggrossetie@gmail.com"},"maintainers":[{"name":"ggrossetie","email":"ggrossetie@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unxhr_1.1.0_1605377181579_0.5480763777025268"},"_hasShrinkwrap":false,"publish_time":1605377181681,"_cnpm_publish_time":1605377181681},"1.0.4":{"name":"unxhr","description":"Synchronous and asynchronous XMLHttpRequest for Node","version":"1.0.4","scripts":{"test":"mocha tests/test-*.js","lint":"standard tests/**.js lib/**.js example/**.js"},"authors":["Dan DeFelippi (http://driverdan.com)","Guillaume Grossetie (https://github.com/mogztter)"],"keywords":["xhr","ajax","sync","http"],"license":"MIT","repository":{"type":"git","url":"git://github.com/mogztter/unxhr.git"},"browser":{"fs":false,"child_process":false},"bugs":{"url":"http://github.com/mogztter/unxhr/issues"},"engines":{"node":">=8.11"},"directories":{"lib":"./lib","example":"./example"},"main":"./lib/XMLHttpRequest.js","devDependencies":{"chai":"4.2.0","dirty-chai":"2.0.1","get-port":"5.1.1","mocha":"7.1.2","standard":"14.3.4"},"standard":{"env":["mocha"]},"gitHead":"ef7415c2e2a674144623c4ad8b51860f22bb1e93","homepage":"https://github.com/mogztter/unxhr#readme","_id":"unxhr@1.0.4","_nodeVersion":"10.15.1","_npmVersion":"6.14.5","dist":{"shasum":"88522179d732a887582d05c1cf38ece81e7008b9","size":7891,"noattachment":false,"key":"/unxhr/-/unxhr-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/unxhr/download/unxhr-1.0.4.tgz"},"maintainers":[{"name":"ggrossetie","email":"ggrossetie@gmail.com"}],"_npmUser":{"name":"ggrossetie","email":"ggrossetie@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unxhr_1.0.4_1589738369753_0.10862445903834939"},"_hasShrinkwrap":false,"publish_time":1589738369906,"_cnpm_publish_time":1589738369906},"1.0.3":{"name":"unxhr","description":"Synchronous and asynchronous XMLHttpRequest for Node","version":"1.0.3","scripts":{"test":"mocha tests/test-*.js","lint":"standard tests/**.js lib/**.js example/**.js"},"authors":["Dan DeFelippi (http://driverdan.com)","Guillaume Grossetie (https://github.com/mogztter)"],"keywords":["xhr","ajax","sync","http"],"license":"MIT","repository":{"type":"git","url":"git://github.com/mogztter/unxhr.git"},"browser":{"fs":false,"child_process":false},"bugs":{"url":"http://github.com/mogztter/unxhr/issues"},"engines":{"node":">=8.11"},"directories":{"lib":"./lib","example":"./example"},"main":"./lib/XMLHttpRequest.js","devDependencies":{"chai":"4.2.0","dirty-chai":"2.0.1","get-port":"5.1.1","mocha":"7.1.2","standard":"14.3.4"},"standard":{"env":["mocha"]},"gitHead":"8b445b128614369e637e9b554cd9111216f9798d","homepage":"https://github.com/mogztter/unxhr#readme","_id":"unxhr@1.0.3","_nodeVersion":"10.15.1","_npmVersion":"6.14.5","dist":{"shasum":"6b85267fe894c034d8ea12d13df700c6697cbc4c","size":7601,"noattachment":false,"key":"/unxhr/-/unxhr-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/unxhr/download/unxhr-1.0.3.tgz"},"maintainers":[{"name":"ggrossetie","email":"ggrossetie@gmail.com"}],"_npmUser":{"name":"ggrossetie","email":"ggrossetie@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unxhr_1.0.3_1589733139535_0.6448915414796765"},"_hasShrinkwrap":false,"publish_time":1589733139634,"_cnpm_publish_time":1589733139634},"1.0.2":{"name":"unxhr","description":"Synchronous and asynchronous XMLHttpRequest for Node","version":"1.0.2","scripts":{"test":"mocha tests/test-*.js","lint":"standard tests/**.js lib/**.js example/**.js"},"authors":["Dan DeFelippi (http://driverdan.com)","Guillaume Grossetie (https://github.com/mogztter)"],"keywords":["xhr","ajax","sync","http"],"license":"MIT","repository":{"type":"git","url":"git://github.com/mogztter/unxhr.git"},"browser":{"fs":false,"child_process":false},"bugs":{"url":"http://github.com/mogztter/unxhr/issues"},"engines":{"node":">=8.11"},"directories":{"lib":"./lib","example":"./example"},"main":"./lib/XMLHttpRequest.js","devDependencies":{"chai":"4.2.0","dirty-chai":"2.0.1","get-port":"5.1.1","mocha":"7.1.2","standard":"14.3.4"},"standard":{"env":["mocha"]},"gitHead":"d5afbfbe34f455de219e6f5e263ec24a9525335c","homepage":"https://github.com/mogztter/unxhr#readme","_id":"unxhr@1.0.2","_nodeVersion":"10.15.1","_npmVersion":"6.14.5","dist":{"shasum":"04ab11f22a1596f488e835595ca5a6f6783f19d3","size":7572,"noattachment":false,"key":"/unxhr/-/unxhr-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unxhr/download/unxhr-1.0.2.tgz"},"maintainers":[{"name":"ggrossetie","email":"ggrossetie@gmail.com"}],"_npmUser":{"name":"ggrossetie","email":"ggrossetie@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unxhr_1.0.2_1589728569539_0.5224115162925453"},"_hasShrinkwrap":false,"publish_time":1589728569636,"_cnpm_publish_time":1589728569636},"1.0.1":{"name":"unxhr","description":"Synchronous and asynchronous XMLHttpRequest for Node","version":"1.0.1","scripts":{"test":"mocha tests/test-*.js","lint":"standard tests/**.js lib/**.js example/**.js"},"authors":["Dan DeFelippi (http://driverdan.com)","Guillaume Grossetie (https://github.com/mogztter)"],"keywords":["xhr","ajax","sync","http"],"license":"MIT","repository":{"type":"git","url":"git://github.com/mogztter/unxhr.git"},"browser":{"fs":false,"child_process":false},"bugs":{"url":"http://github.com/mogztter/unxhr/issues"},"engines":{"node":">=8.11"},"directories":{"lib":"./lib","example":"./example"},"main":"./lib/XMLHttpRequest.js","devDependencies":{"chai":"4.2.0","dirty-chai":"2.0.1","get-port":"4.0.0","mocha":"5.2.0","standard":"12.0.1"},"gitHead":"a219c68cc1d58a9e57059426299617a86393b732","homepage":"https://github.com/mogztter/unxhr#readme","_id":"unxhr@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.11.1","_npmUser":{"name":"ggrossetie","email":"ggrossetie@gmail.com"},"dist":{"shasum":"92200322d66c728993de771f9e01eeb21f41bc7b","size":7491,"noattachment":false,"key":"/unxhr/-/unxhr-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unxhr/download/unxhr-1.0.1.tgz"},"maintainers":[{"name":"ggrossetie","email":"ggrossetie@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unxhr_1.0.1_1545338313955_0.33415069028890687"},"_hasShrinkwrap":false,"publish_time":1545338314058,"_cnpm_publish_time":1545338314058},"1.0.0":{"name":"unxhr","description":"Synchronous and asynchronous XMLHttpRequest for Node","version":"1.0.0","scripts":{"test":"mocha tests/test-*.js","lint":"standard tests/**.js lib/**.js example/**.js"},"authors":["Dan DeFelippi (http://driverdan.com)","Guillaume Grossetie (https://github.com/mogztter)"],"keywords":["xhr","ajax","sync","http"],"license":"MIT","repository":{"type":"git","url":"git://github.com/mogztter/unxhr.git"},"browser":{"fs":false,"child_process":false},"bugs":{"url":"http://github.com/mogztter/unxhr/issues"},"engines":{"node":">=8.11"},"directories":{"lib":"./lib","example":"./example"},"main":"./lib/XMLHttpRequest.js","devDependencies":{"chai":"4.2.0","dirty-chai":"2.0.1","get-port":"4.0.0","mocha":"5.2.0","standard":"12.0.1"},"gitHead":"c97157f8165be2ffab4814d73bc1aaa41ed8b5fb","homepage":"https://github.com/mogztter/unxhr#readme","_id":"unxhr@1.0.0","_npmVersion":"6.5.0","_nodeVersion":"10.14.1","_npmUser":{"name":"ggrossetie","email":"ggrossetie@gmail.com"},"dist":{"shasum":"3eb92daaa26d01daacbd025e3628de7a261ea6ac","size":7444,"noattachment":false,"key":"/unxhr/-/unxhr-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unxhr/download/unxhr-1.0.0.tgz"},"maintainers":[{"name":"ggrossetie","email":"ggrossetie@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unxhr_1.0.0_1545324372031_0.6122551247554417"},"_hasShrinkwrap":false,"publish_time":1545324372165,"_cnpm_publish_time":1545324372165}},"readme":"> Synchronous and asynchronous XMLHttpRequest for Node\n\n[![Build](https://github.com/Mogztter/unxhr/workflows/Build/badge.svg)](https://github.com/Mogztter/unxhr/actions?query=workflow%3ABuild)\n[![install size](https://packagephobia.now.sh/badge?p=unxhr)](https://packagephobia.now.sh/result?p=unxhr)\n[![npm version](https://img.shields.io/npm/v/unxhr)](https://www.npmjs.com/package/unxhr)\n\n_unxhr_ is a tiny wrapper of the built-in `http` client to emulate the browser `XMLHttpRequest` object.\n\n**Important:** This library is a fork of [XMLHttpRequest](https://github.com/driverdan/node-XMLHttpRequest).\nIt was created to be compliant with [XMLHttpRequest Level 2](http://www.w3.org/TR/XMLHttpRequest2/).\n\n## Highlights\n\n- Dependency free\n- Asynchronous and synchronous requests\n- `GET`, `POST`, `PUT`, and `DELETE` requests\n- Binary data using JavaScript typed arrays\n- Follows redirects\n- Handles `file://` protocol\n\n## Usage\n\nHere's how to include the module in your project and use as the browser-based XHR object.\n\n```js\nconst XMLHttpRequest = require('unxhr').XMLHttpRequest\nconst xhr = new XMLHttpRequest()\n```\n\n## Known Issues / Missing Features\n\nFor a list of open issues or to report your own visit the [github issues page](https://github.com/Mogztter/unxhr/issues).\n\n* Local file access may have unexpected results for non-UTF8 files\n* Synchronous requests don't set headers properly\n* Synchronous requests freeze node while waiting for response (But that's what you want, right? Stick with async!).\n* Some events are missing, such as abort\n* Cookies aren't persisted between requests\n* Missing XML support\n\n## License\n\nMIT license. See LICENSE for full details.\n","_attachments":{},"homepage":"https://github.com/mogztter/unxhr#readme","bugs":{"url":"http://github.com/mogztter/unxhr/issues"},"license":"MIT"}