{"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":{"integrity":"sha512-/PX3NyhavbuenhZFNyvUwb/+w3vKsQoh8D0Pd8dYlJ/svHvXnOdS4r7sx+d32jEbvyLONGl/adk5CQNJK4S8RQ==","shasum":"1f2fff238941b71e469b67a2127f400902c0721f","tarball":"http://registry-npm.ywwl.com/unxhr/download/unxhr-1.1.0.tgz","fileCount":6,"unpackedSize":25400,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsByeCRA9TVsSAnZWagAAWTYP/jZI5JPu3qvazBO3Ekte\nytLmtV5PF4rBLE4Zfgz2vVvo1h939pATcadPv/C2fRzmBgviMzt3tdMjaS1c\nsq9XL+gJfdlt0s3c2e1ARUYROitD5cKcQ+RiREnbiG01A4E2+Ax4D+m9ofYN\nquxLL/3gIeQoWROBU+BMVobDpysjapMT4nV0WzxgB0uUJJec1u1PIjQXGPuz\nFvZTA1goQctSpcRq8IR79GXDMwKQtN8KrF0j5EhXig8VyfB6INvvUaOuzjtf\nSOGDLTC81y3WF8KyN7gc4j+rJ+dvbCBmsbfVQ1V+AJdvQviFbBE6r8bADyWt\ngxtNWchF5yJByrH2NPHvi+vpqFayzHkmNGmFZijJdJCI0JZkD/5nVpr/aaNC\napew9EXcDqmFzHFitYxQ7muMYQXrOkMW+keEara5dkBmzEPFe+dggjMoeBHn\nrVhEyvEKVfN8YbL2EFa2D4Qp2BMPwDxudbyHGj1I1leCeujysPk9LQ7Bfd6u\nWnG3xU9XD1S65hQrPjdvEfHnZ417YXyyS9FPePfE8cKWEZSiEhjM03krN2KI\nbDMv3mts87WOicETsrsRmS2hViUwzYA4WN32I4loyJzsIRuJeMT6wcq4tlTg\nVqvRDpuTpqVP1eI5YV55gCJbAobdOzOmBgdeRtYbjjeYWw2a5f9O+vsG1L+H\nOPjn\r\n=Buu5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCATPcCqrAiNpTx7lD0uRFnM9IZWV3/vxMOWGf2gucvvgIhAOcWG4ljPV/cX+f8MXG8HsPihw2JAUg42jcDZkQHz2OV"}],"size":8335,"noattachment":false,"key":"/unxhr/-/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,"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","publish_time":1605377181681,"_cnpm_publish_time":1605377181681,"dist-tags":{"latest":"1.2.0"}}