{"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":{"integrity":"sha512-I1I74UUWl2FAA/cOZeaeDZD7hDSO8QizuUbQtl4MJZG7XKtqxudnwTYVHW1FcCnBK7Rifidy7GOoRGk3LwFybQ==","shasum":"c86ff2cb5814e0180f7c5508f97ccd0e60a5631c","tarball":"http://registry-npm.ywwl.com/unxhr/download/unxhr-1.1.1.tgz","fileCount":6,"unpackedSize":25525,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9CXVCRA9TVsSAnZWagAAFKwP/jpC3O5UxsrxCnc/lI0A\ne0sBp9OhQWQzA4yhUm10i5oId6VKeRtMhhc8DIr80G1f9TQS3fdUz4/I9mIi\n5VfHOfZw5AAtH8Gi/c4aNKncyoQaiTYCMa3pqV5VSbMxH/QbysMgIEoyyLOL\nF2Tq09uHn419lA9iT3dOKdJmk81f/HXSORURnfkjISZ3OoEOGNzVy3c+Rhp0\njaWCy7IptlqkW7Z4syb/aO59T1AfWxb4Plip/TFkBMIP3nFFnYhWGct6no7v\nWWibr/bh8hsMoFoPZUccuHoNDOcy3r1ca7fwKCOlCx+ejCuMVdcm1EDjvVYd\nBiMs+6a9I5y7pMHIGXNKXJX62QezPYDwuhqSVdbHlx+VzaiSi9fNbcGBtNxZ\n8PqVfV2XP8nJBgRqzdnm1AMAVEhn+0GwdD7qYPHsTjfUjgw5dmxxQR9dr88E\nYycAs5NMixHslqwLlDXceFOLzpXp9OIrBpFMLVjzUxCKmP9BFyRUe/Leh2X/\n12jMqxxCFPtEJJjeSRCtiQK63dztKmYXfDVGqfNZYqqHv23K/20wCvkkzt9T\nEs6aEaHqTQoxvJ/+7xzQJO62C/t+zTpUS/A881JY/n/xo/O8WvTv1rSLUI4r\nUNudBk2e24ycTFJJJi3MsGzUD6xjW6aUw8/s5hLrUIr9bMDjL4na7Gx1pCJM\naqPm\r\n=pUYA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCg+Cw2Ob6kCfQC5NHTZmTvlOxLFs9S5l8I8NzIRFk/PwIhAPi8EnKhBueJqeOYBoYmsAOrHRgv2fjOeiW8GKhq9aIK"}],"size":8389,"noattachment":false,"key":"/unxhr/-/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,"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":1609835988759,"_cnpm_publish_time":1609835988759,"dist-tags":{"latest":"1.2.0"}}