{"bugs":{"url":"https://github.com/ykzts/node-xmlhttprequest/issues"},"dist":{"shasum":"680b9b1ddf7478a21a41cb62cf002a33b3fd2fa0","tarball":"https://registry.npmjs.org/w3c-xmlhttprequest/-/w3c-xmlhttprequest-3.0.0-beta.2.tgz","fileCount":17,"integrity":"sha512-mcszbYPGlhSy+q3L4fh2WhyxhvbbBszHpJmBd3wMANgGvyzfsTWf7E8R3tODV3E0tkcVyl0DntIht68RoeckgA==","signatures":[{"sig":"MEQCIG4dGUJesrG+g26HSfGABl2X1tum05zSt047J6AWQTn4AiAajfucPA26BkUDnkqmqiE2PmwqtYBEvd2ZMp83rLvztA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":183048,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHGraCRA9TVsSAnZWagAABTQP/iacpzuZQPqhw/Wj6pPF\nEfpO0vo2chWblhnVklIvhRypYeNkYnfIZ9J4SkYYeeIAUkG9uDVeS61u4XLN\nyaGsZnvSIvduVEcZi4L38YvnCxqtcCsAuPAZoQ/MmRazssD9FOfhAHDxgkWq\nahj6eGDa5FbQzr9zitfRw3Tg2DJrNqj5CWJDt0eMoYViufjLY7Fx2wfqT+t0\nfZorIxlzZmw7DgZP8yeMWSmnKuiCW7zd3JIeHjzsNF2iEeluyzeL+Hdxf2iz\nqaeiPWvfiFERg97dtGPGriDgPWN69AM8WtUBczuvB+74775+S8rFyw0+bexD\n+Z/6FS3dXRZ6d3NM8aF0VppdlXf/KQPAjOgZK/Yv1soSc5XDIoUhKdFIzCjC\nwl3fKa1SsNAVujI5L5POArAYjXARPszdmpgtbVKX1HarbweWgRkupEtkR0zs\nHQEY0uJh53Pk2qIha7LqCtq/lp8PEYuK0pLQqGe5OLvnkbHmCMWUktE/IjA4\n+fkkDGCVVhAZx8zMDEpIIUA0sJFBVZYwy7l2REhsED/aOJTsvCUEAHSRcE6N\nEmiNf2q0/p7dtF7JBB+nAeBu19i0brMrHu0wF6FcVOGmcxwi9HGRKGWDns1m\nelHfAwdzfxTpQeM5R9lIUxYpVG/+uLmUYEr7rwMoabuwKw2sciOr9g+g70oW\nLLBu\r\n=uF8h\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"ts-jest","globals":{"ts-jest":{"tsConfig":"<rootDir>/test/tsconfig.json"}},"testMatch":["<rootDir>/test/integration/**/*.ts"]},"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":"464444393324cc5a7ca09914015ebea938998e84","license":"MIT","scripts":{"lint":"eslint .","test":"jest","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":{"jest":true},"files":["test/**/*.ts"]}],"parserOptions":{"sourceType":"module","ecmaVersion":2019}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^26.1.0","eslint":"^7.5.0","ts-jest":"^26.1.3","get-port":"^5.1.1","prettier":"^2.0.5","@types/jest":"^26.0.7","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.2_1595697881874_0.48979046275547455","host":"s3://npm-registry-packages"},"_id":"w3c-xmlhttprequest@3.0.0-beta.2","version":"3.0.0-beta.2"}