{"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":{"integrity":"sha512-MAhukhVHyaLGDjyDYhy8gVjWJyhTECCdNsLwlMoGFoNJ3o79fpQhtQuzmAE4IxCMDwraF4cW8ZjpAV0m9CRQbg==","shasum":"92200322d66c728993de771f9e01eeb21f41bc7b","tarball":"http://registry-npm.ywwl.com/unxhr/download/unxhr-1.0.1.tgz","fileCount":6,"unpackedSize":22006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcG/3KCRA9TVsSAnZWagAADQIP/30wkn8DunhVpAMkb5em\ndyTwx2q/mjntW6NVaKv9pW5aVmY8BSB4IRF6yZIQ9qw5zLcrmrqQxbK4Qujc\nG3StM5wIONQhn7hrulc5CzCAWxBqCturH8gcqTW9QLbx7wZwBDqi7NGpnphN\nhf/NQY6YtQ5wWk+kBLJUSxeU7/p3/wJqsfS68iZx61YlSfaDhe5AMRRxBkDg\nIR9RFi6eurKmpCgL3CSftF9jXNrtmulc5Yz6zEz9fD8wKmu1IawmjQXyJR/D\nRYmNbBiUg8mYi3rhVWS6pTZuMzpIkByZAtOfqjr6dNqxM6OgeC312VTwgEko\nxAnFxJT3W3y3sWf5ILtq/PMtIwyfShdSgc1//tCqeI0iRMnqOx5TA+hF+mOh\n3ODZY6eOR2XXcm6lkIXQjIxLL9xvV8Bpxw+74ppi5p/qSv2lwSrRoOF+/U3U\n9sOUK4+7q63pAsbY9a+dR2lvgFsJOiMaxQI3DVsXavfG3MU8QRS0J7m0M9TD\n6/yugze/MAvFEb9Z96Herz7r8hY05JMTsaAn6DcXJ0TyxvNQaM9Bhicif3w/\nAgZJqEryeZ7snR+wPNlAulH39DlBgq+UXLP6ZZ3cDCIJQpK9ln69kLHcKpkJ\nfKQ6lxnGV8LUP01xZ2jM6pR0PujVjtzsXPuIrX/HMCAzkwZL7cOWRaM0ShQ4\n/9KM\r\n=Azp/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICz9BUVAhmbmU5npFjoovCdDILTE24Bge5PHPPOkhGurAiEAsTTU83JlBG9bv/5D6btoYiPHoTaS8mLlVJOf9fvu2Lc="}],"size":7491,"noattachment":false,"key":"/unxhr/-/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,"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":1545338314058,"_cnpm_publish_time":1545338314058,"dist-tags":{"latest":"1.2.0"}}