{"name":"unxhr","description":"Synchronous and asynchronous XMLHttpRequest for Node","version":"1.2.0","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.3.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":"8c99b2e36072da60ca19c161bd2a872117627772","homepage":"https://github.com/mogztter/unxhr#readme","_id":"unxhr@1.2.0","_nodeVersion":"14.15.4","_npmVersion":"7.5.2","dist":{"integrity":"sha512-6cGpm8NFXPD9QbSNx0cD2giy7teZ6xOkCUH3U89WKVkL9N9rBrWjlCwhR94Re18ZlAop4MOc3WU1M3Hv/bgpIw==","shasum":"44d391cb882c268a2909cd258a9a4f1941a6cf57","tarball":"http://registry-npm.ywwl.com/unxhr/download/unxhr-1.2.0.tgz","fileCount":6,"unpackedSize":25734,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJWIMCRA9TVsSAnZWagAAFZIP/i76ZS1OQY/BA13+qq3A\n8ujaOCd2GR7FCKkdn11lOrtHf0EGa2v9aenSgL5f6bAkj9WRZg9fgFS9kQDS\nMSlCVY834w3GvBc+MP121Phom392qwfXwriDBr0mocBLoiLjyrJHqrEibobj\nGuaml3f/AZxEHOd5Rmh6YEMdtg/PMPha1eJmEXOwbtFXO3sj9W3RJVFEHqT3\neSXGnAQdMdUb790AxxJJXgorFyADElKk5BZum0k2AdmFXACv4HT84uj3CCIp\nxwEB8ntbc1O/kDSCcWrsDbhG/YAg+TqOA5ZCIVInV8bsHtg7bEqqcuW1MvHg\nUK8gMps0IDSyt+OhnxQOv+zUp/LkEHC3B1lOnf59FzQL6FDt39ISfp9rabGG\nI4BpwhR6+RNIEw6pEP7h763zJU9hw81iMCo7uLm8BCc7vXgDhztA9RX/qY6U\nqliZClVtGcWUd6RZSyIOeKmwHwa+td8ciLX/UYbOjoPJYiptIziPJMKUnIko\nNtrYi0r3H2tghIHz6xD0lp/5XmzIEB01/1ENHm2hns1W8JaYuBbH9APGHXPf\nHaVAa/3qbrP5TkfI3Lea5heCIDOxWjmxKplOaeKPQZ7tcnPLGAwaZag7ea5E\n16VJgZZ/EZ4/57IVGKIdYkpGMAIyONMTbaLq5qim2fJf8/InFLsn8KsW0F2x\naIVt\r\n=livv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICsxMvXA5vO7wXdZ5kLN2K9J5evgYQzLKy6bHdWz11GyAiEAyytTWIgMlfE8BN5n3DldhbTb/H0W4ReTn3dZbgYdSoI="}],"size":8473,"noattachment":false,"key":"/unxhr/-/unxhr-1.2.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.2.0_1613062668203_0.3297442502400818"},"_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":1613062668364,"_cnpm_publish_time":1613062668364,"dist-tags":{"latest":"1.2.0"}}