{"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":{"integrity":"sha512-sjnR6uZi8XA/XHC6Dy1qoYksXbU0Qbdj4eyaFID/3W/3BW41nDMpupo/elNxGZ6InLQQAt7aH5/gO69GLGLtZw==","shasum":"04ab11f22a1596f488e835595ca5a6f6783f19d3","tarball":"http://registry-npm.ywwl.com/unxhr/download/unxhr-1.0.2.tgz","fileCount":6,"unpackedSize":22242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewVU5CRA9TVsSAnZWagAA7XEQAI+31zzRwNaEPG8y7D+f\nTpADPyQkcCAz9FVs2Ka9r73+2sM0HOoU7OED7pRox/uU2J/BT5F/IpfnDrUJ\niIBhZjKXtfdegBG8wo6NHUhHshoBjrMRrh8P+64BoqTgg/ysEHFt/bXNVOXK\nh82WXDWSJLjh0/belSlFLhU4+cpZa8dzdp8BWuZld2BreJBNqLyjw6M1/4gs\nD+P38Gz+9AAfRAMXpeVrV+U0abEiOngxB+BTuMbhPpSb7T0uhnw2n9QzxpnU\nYj7ml4JNc7gCEBwXH/bSpL+nFYjciMXIqkQ8ilYLUMnwCEJd1quJN7QZwDC6\nfQDdfi2Pq6hA0XJ1tru3rYzkgTidoe1YHI165xtBAL/dA1HzC3alb6PKO1LH\ndgV+doLdV8y4nFigLGD9j2pvpnTdO3DrlhatxM/xwe7SfLwPnp04797OS/wM\nlYu+oXIaEELAcMLp+LgZ/pSl9267nmiNBbItjMHvE2MK61y/5CkwjEXuvrrT\nDZspQYunJLaq4yuvpbLfuATWQC5XsAU87ErvyiOLMElTEKk2ipesjWP2eohO\nPkRMJcMrTP0KY5a++Y02xNfRT8z5sAUCc6CmJDMSzA2EBumcEjT8Z2ljOxy2\nkuFDGOS8yQUgThmcYLl9SDvShCTHueRtQn3taynJO5IaWfHPg/jIKsK5l++D\nEQ9J\r\n=9zF1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIENm75jzAt3lOWO0CO+TgpvsozyRXOvps1kIVzv4UmvCAiEAlhfagqr3WdM/MK6liSFXNOG3hClMNOUnvqSMY3/+atk="}],"size":7572,"noattachment":false,"key":"/unxhr/-/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,"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":1589728569636,"_cnpm_publish_time":1589728569636,"dist-tags":{"latest":"1.2.0"}}