{"bugs":{"url":"https://github.com/ykzts/node-xmlhttprequest/issues"},"dist":{"shasum":"a1a4b453427aa91f4a1282d09d721ae85fbd1a9b","tarball":"https://registry.npmjs.org/w3c-xmlhttprequest/-/w3c-xmlhttprequest-3.0.0-beta.1.tgz","fileCount":17,"integrity":"sha512-43PSWE27SmtFr/yZBs6bj4f/EJLu8xOeEJSpDrIm27qUEFO6EhYgV8hylUFaE2jeXBDqxPfeRGzwSfpZBUIVzg==","signatures":[{"sig":"MEUCIAFRxCKH3R7QKxQ4ToNKnRy7SbjnJ4OzPF9v76MOEnnlAiEAlGvPMuMC3z9TT9AfdnM/ZJ7Go2S1PfwGUc6p4jyq254=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":182585,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG8tfCRA9TVsSAnZWagAAwFcQAIiEDjyLjhTZ1rDHlxnB\nWkEALkASPj1iZ2tv+g7Y65Eyn2IoV3kzjjLnkHxXHAz/6ZFmfRJHDjJGjx8p\nwcV7LieNbQcXLoyxh5+Up1hP+/ZH5KNXdFp60bDoUz4W2i4MNLzNPyVPPszD\nOnSx+LIiog7ersOHRN4YHhHs8U1tOrQbGqExGV/zC3jf5r00p59soCQJWxBY\nYPrHNv0G16f/UsJ/vkxo0K+4tcTYkpW7QSjoAp5MbcE6UvwwemoTHwWM7Oft\nIW11UXqVjaViEuSePrr9yIVfo/Trx46mHmDFcgGzSFJ64emXNy37q/WVmxFA\nhGgoTyoEIslRaZD/T3g5LgIAP/Naplx01oGUYnz9q4H3WbfFYx/WdFitnAA+\nkGXKrOGbCQmDTJz5gLI2Goj+8F8Jy4Us+MKOsctiCEEUAnLyuOfN+0yAxuoQ\nRwuFNpEkzevQdL5xK1zDBxWp0kG8CnPDezFWeMrnIMx123anYOdCaldx++m1\nrUEEB8WM+2TB7DGTcAelx1pX3T8eEi2q8LWC48uvmUBXryvmOH/MzRig5jpS\nv5ELp27vYG2RqF0jwyt3ZhUxxarFVU8yH5xYQW2Ir4/Zvlb8B3jITsG/ZBRW\nnuOa77HysUjcMyEq/zw6alDW+SnSwQ8mgfvL2ijrBiKy18SOxO3B3N4w1Thy\nvHZf\r\n=rL6Z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","name":"w3c-xmlhttprequest","types":"./dist/index.d.ts","author":{"name":"Yamagishi Kazutoshi"},"module":"./dist/index.module.js","readme":"# w3c-xmlhttprequest [![Node.js CI](https://github.com/ykzts/node-xmlhttprequest/workflows/Node.js%20CI/badge.svg)](https://github.com/ykzts/node-xmlhttprequest/actions?query=workflow%3A%22Node.js+CI%22)\n\nServer-side XMLHttpRequest like [Living Standard](https://xhr.spec.whatwg.org/) for [Node](https://nodejs.org/).\n\n## Install\n\n```console\n$ npm install w3c-xmlhttprequest\n```\n\nor\n\n```console\n$ yarn add w3c-xmlhttprequest\n```\n\n## Example\n\n### Simple GET request\n\n```typescript\nimport { XMLHttpRequest } from 'w3c-xmlhttprequest';\n\nconst client = new XMLHttpRequest();\nclient.open('GET', 'https://example.com/');\nclient.addEventListener('load', () => {\n  console.log('Received an HTTP response.');\n}\nclient.send();\n```\n\n### Parse JSON response\n\n```typescript\nimport { XMLHttpRequest } from 'w3c-xmlhttprequest';\n\nconst client = new XMLHttpRequest();\nclient.open('GET', 'http://exmaple.com/data.json');\nclient.responseType = 'json';\nclient.addEventListener('load', () => {\n  const data = client.response;\n  if (data.meta.status !== 200) return;\n  console.log(data.response.blog.title);\n});\nclient.send();\n```\n\n## LICENSE\n\n[MIT License](LICENSE)\n","source":"./src/index.ts","browser":"./browser.js","engines":{"node":">= 10.13.0"},"gitHead":"ee7f9a6f1f1074c961f35f5e5e8ef1aaf22baaa7","license":"MIT","scripts":{"lint":"eslint .","test":"mocha test/**/*.js","build":"microbundle --external http,https,perf_hooks --format cjs,es --strict --target node","format":"prettier --write ."},"_npmUser":{"name":"ykzts","email":"ykzts@desire.sh"},"homepage":"https://github.com/ykzts/node-xmlhttprequest","prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","quoteProps":"as-needed","arrowParens":"always","singleQuote":true,"trailingComma":"none","bracketSpacing":true},"repository":{"url":"git+https://github.com/ykzts/node-xmlhttprequest.git","type":"git"},"_npmVersion":"6.12.1","description":"Server-side XMLHttpRequest.","directories":{},"maintainers":[{"name":"ykzts","email":"ykzts@desire.sh"}],"_nodeVersion":"12.13.1","dependencies":{},"eslintConfig":{"env":{"es6":true,"node":true},"extends":["eslint:recommended","plugin:prettier/recommended"],"overrides":[{"files":["**/*.ts"],"extends":["plugin:@typescript-eslint/recommended","prettier/@typescript-eslint"]},{"env":{"mocha":true},"files":["test/**/*.js"]}],"parserOptions":{"sourceType":"module","ecmaVersion":2019}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.0.1","eslint":"^7.5.0","prettier":"^2.0.5","microbundle":"^0.12.3","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","@typescript-eslint/parser":"^3.7.0","@typescript-eslint/eslint-plugin":"^3.7.0"},"optionalDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/w3c-xmlhttprequest_3.0.0-beta.1_1595657055045_0.4984835231249758","host":"s3://npm-registry-packages"},"_id":"w3c-xmlhttprequest@3.0.0-beta.1","version":"3.0.0-beta.1"}