{"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":{"integrity":"sha512-W0qjLVsaTdVB2GRHFIxPI/5Ej07aLs3kSLUgLYhrqrUP4c12jXYYJJeGwGLl9PWlR4YSP6Yq5johgv113C4N8g==","shasum":"88522179d732a887582d05c1cf38ece81e7008b9","tarball":"http://registry-npm.ywwl.com/unxhr/download/unxhr-1.0.4.tgz","fileCount":6,"unpackedSize":23284,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewXuCCRA9TVsSAnZWagAAbUsP/jvB+HnRIRGtd4tr7jqx\n6jWpDEgG5yJMRhO2jvkXrtsN0CUGV/1//QaOojmKH5ZzU493WrZ8zlsu8rtL\nF0ulpRsHeVij/bQaJJBGaAaYx2+pOJIGC8NbxmUulcrZEZ/+hiqcTUNG121J\nvPqLSTlH5KNdxDoNC+05JkeBhV13amxGHa42juja1aGD2rZbwD6yq2TS/Cpa\n6h3EszZJLyRUOw9BbQaV8tIZskWmG1iXSx+wdtgUc+GPkv+I7WRV6P1FkdAC\nwPgfYm8ereG/13wAUtULcn1waM09OAHHKdkEBLB2vbdhTJ1V5d3vIZZczkbP\n6i9FiCyRnl5VypLMbl/aMt6Er0siyTX3ZDv3KTANnX1FYw07dkDe7rkKYBir\n3WV3AVLTSOA7Ex8HJ7odFkpvRKWL+yWPmBBC1tt16X5UDE7BXkcyRP2MmA0l\nxLQHhh1VmIB+ednlVTtLDNKDDh58649yJ/lYZkAnVokkBr8BzGoC70NGsoNz\nqwhA40Z3MmeIccyaVlcp0N7VyTvrb0i00VqvLcvGDeqIbimrETN51wrQp98O\nva8MwICJU+0e4MhqLy8B7sfq3vwvKuHU7VAyCAvc35761+0fuqfcbsi04pf2\nabK9LHQpVCldEXYRkh18Xoh0bRs7nOnv3C3vZdU5tkVK4MFkMZlSnYv+t0hk\n/1kF\r\n=3Nvl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeWGI+t/kw6gubYIChAG0G5q7UEoPIGr2eGa1Vu2H/nAIgNEb0vwXFFeBPgifftP9qEajtWs8i5R2fbQXBHsd/HJc="}],"size":7891,"noattachment":false,"key":"/unxhr/-/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,"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":1589738369906,"_cnpm_publish_time":1589738369906,"dist-tags":{"latest":"1.2.0"}}