{"_id":"xhr-response","_rev":"269114","name":"xhr-response","description":"Safely extract the XHR response from your XHR instance.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"3rdeden","email":""},{"name":"npm:3rdeden","email":""}],"time":{"modified":"2023-06-28T12:14:11.000Z","created":"2015-03-24T13:24:41.219Z","1.0.1":"2015-05-06T15:57:26.795Z","1.0.0":"2015-03-24T13:24:41.219Z"},"users":{},"author":{"name":"Arnout Kazemier"},"repository":{"type":"git","url":"https://github.com/unshiftio/xhr-response"},"versions":{"1.0.1":{"name":"xhr-response","version":"1.0.1","description":"Safely extract the XHR response from your XHR instance.","main":"index.js","scripts":{"100%":"istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","test":"mocha test.js","watch":"mocha --watch test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js"},"repository":{"type":"git","url":"https://github.com/unshiftio/xhr-response"},"keywords":["xhr","response","body","data","responseText","responseXML","XMLHTTPRequest","request"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/unshiftio/xhr-response/issues"},"homepage":"https://github.com/unshiftio/xhr-response","devDependencies":{"assume":"1.2.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x"},"gitHead":"2052703118f230b09c1b5a41d7d2ea5cdea03062","_id":"xhr-response@1.0.1","_shasum":"affe3a08544ba72186e4dc52cd0226671d8673fe","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""},{"name":"npm:3rdeden","email":""}],"dist":{"shasum":"affe3a08544ba72186e4dc52cd0226671d8673fe","size":2313,"noattachment":false,"key":"/xhr-response/-/xhr-response-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/xhr-response/download/xhr-response-1.0.1.tgz"},"directories":{},"publish_time":1430927846795,"_hasShrinkwrap":false,"_cnpm_publish_time":1430927846795,"_cnpmcore_publish_time":"2021-12-18T20:42:08.437Z"},"1.0.0":{"name":"xhr-response","version":"1.0.0","description":"Safely extract the XHR response from your XHR instance.","main":"index.js","scripts":{"100%":"istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","test":"mocha test.js","watch":"mocha --watch test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js"},"repository":{"type":"git","url":"https://github.com/unshiftio/xhr-response"},"keywords":["xhr","response","body","data","responseText","responseXML","XMLHTTPRequest","request"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/unshiftio/xhr-response/issues"},"homepage":"https://github.com/unshiftio/xhr-response","devDependencies":{"assume":"1.2.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x"},"gitHead":"0cd0cb457b798abbf0e7a262338d7561dbda7867","_id":"xhr-response@1.0.0","_shasum":"44026f7a74588f54bf56263abe9208890260040c","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""},{"name":"npm:3rdeden","email":""}],"dist":{"shasum":"44026f7a74588f54bf56263abe9208890260040c","size":2115,"noattachment":false,"key":"/xhr-response/-/xhr-response-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/xhr-response/download/xhr-response-1.0.0.tgz"},"directories":{},"publish_time":1427203481219,"_hasShrinkwrap":false,"_cnpm_publish_time":1427203481219,"_cnpmcore_publish_time":"2021-12-18T20:42:08.660Z"}},"readme":"# xhr-response\n\n[![Made by unshift][made-by]](http://unshift.io)[![Version npm][version]](http://browsenpm.org/package/xhr-response)[![Build Status][build]](https://travis-ci.org/unshiftio/xhr-response)[![Dependencies][david]](https://david-dm.org/unshiftio/xhr-response)[![Coverage Status][cover]](https://coveralls.io/r/unshiftio/xhr-response?branch=master)[![IRC channel][irc]](http://webchat.freenode.net/?channels=unshift)\n\n[made-by]: https://img.shields.io/badge/made%20by-unshift-00ffcc.svg?style=flat-square\n[version]: https://img.shields.io/npm/v/xhr-response.svg?style=flat-square\n[build]: https://img.shields.io/travis/unshiftio/xhr-response/master.svg?style=flat-square\n[david]: https://img.shields.io/david/unshiftio/xhr-response.svg?style=flat-square\n[cover]: https://img.shields.io/coveralls/unshiftio/xhr-response/master.svg?style=flat-square\n[irc]: https://img.shields.io/badge/IRC-irc.freenode.net%23unshift-00a8ff.svg?style=flat-square\n\nThe `xhr-response` is a small helper library for safely extracting response data\nfrom XHR requests. There are some minor bugs in browsers which can cause\nexceptions to be thrown when accessing the wrong properties of an XHR request\ninstance. This module works around these bugs. \n\n## Installation\n\nThis module is primary written for client-side code which use the commonjs\nmodule pattern for exporting.\n\n```\nnpm install --save xhr-response\n```\n\n## Usage\n\nIt's just as simple as:\n\n```js\nvar response = require(\"xhr-response\");\n\nvar xhr = new XMLHTTPRequest();\n// .. stuffs ..\n\nxhr.onload = function () {\n  var data = response(xhr);\n\n  console.log('data', data);\n};\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/unshiftio/xhr-response","bugs":{"url":"https://github.com/unshiftio/xhr-response/issues"},"license":"MIT"}