{"_id":"loads","_rev":"269036","name":"loads","description":"Dedicated listening for xhr requests.","dist-tags":{"latest":"0.0.4"},"maintainers":[{"name":"3rdeden","email":""}],"time":{"modified":"2023-06-28T12:13:38.000Z","created":"2015-02-24T17:47:39.954Z","0.0.4":"2015-09-17T15:02:30.796Z","0.0.3":"2015-05-14T15:01:03.294Z","0.0.2":"2015-04-13T09:23:25.403Z","0.0.1":"2015-03-25T14:10:56.980Z","0.0.0":"2015-02-24T17:47:39.954Z"},"users":{},"author":{"name":"Arnout Kazemier"},"repository":{"type":"git","url":"git+https://github.com/unshiftio/loads.git"},"versions":{"0.0.4":{"name":"loads","version":"0.0.4","description":"Dedicated listening for xhr requests.","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":"git+https://github.com/unshiftio/loads.git"},"keywords":["loads","xhr","load","request","ajax"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/unshiftio/loads/issues"},"homepage":"https://github.com/unshiftio/loads","dependencies":{"failure":"1.1.x","one-time":"0.0.x","xhr-response":"1.0.x","xhr-status":"1.0.x"},"devDependencies":{"assume":"1.2.x","eventstub":"1.0.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.1.x"},"gitHead":"d0fa0b88f6e78b88821b9a7f9ff7ceee80f89ac9","_id":"loads@0.0.4","_shasum":"97f3016397e70ddff480b81ec638ceea22a0a99c","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.12.3","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""}],"dist":{"shasum":"97f3016397e70ddff480b81ec638ceea22a0a99c","size":3505,"noattachment":false,"key":"/loads/-/loads-0.0.4.tgz","tarball":"http://name.csiicloud.com:7001/loads/download/loads-0.0.4.tgz"},"directories":{},"publish_time":1442502150796,"_hasShrinkwrap":false,"_cnpm_publish_time":1442502150796,"_cnpmcore_publish_time":"2021-12-18T20:41:54.017Z"},"0.0.3":{"name":"loads","version":"0.0.3","description":"Dedicated listening for xhr requests.","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/loads"},"keywords":["loads","xhr","load","request","ajax"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/unshiftio/loads/issues"},"homepage":"https://github.com/unshiftio/loads","dependencies":{"failure":"1.0.x","one-time":"0.0.x","xhr-response":"1.0.x","xhr-status":"1.0.x"},"devDependencies":{"assume":"1.2.x","eventstub":"1.0.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x"},"gitHead":"25678fb7c6dc62af875320e978ceffb2bee79e79","_id":"loads@0.0.3","_shasum":"b536eeede8c8215fedd9d751f477cbd81d99a788","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""}],"dist":{"shasum":"b536eeede8c8215fedd9d751f477cbd81d99a788","size":3727,"noattachment":false,"key":"/loads/-/loads-0.0.3.tgz","tarball":"http://name.csiicloud.com:7001/loads/download/loads-0.0.3.tgz"},"directories":{},"publish_time":1431615663294,"_hasShrinkwrap":false,"_cnpm_publish_time":1431615663294,"_cnpmcore_publish_time":"2021-12-18T20:41:54.262Z"},"0.0.2":{"name":"loads","version":"0.0.2","description":"Dedicated listening for xhr requests.","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/loads"},"keywords":["loads","xhr","load","request","ajax"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/unshiftio/loads/issues"},"homepage":"https://github.com/unshiftio/loads","dependencies":{"failure":"1.0.x","one-time":"0.0.x","xhr-response":"1.0.x","xhr-status":"1.0.x"},"devDependencies":{"assume":"1.2.x","eventstub":"1.0.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x"},"gitHead":"45a6ad0a58c23aea324f8bf964607052edf65f0d","_id":"loads@0.0.2","_shasum":"c412821e8e939e34dc670d7ae6e0e8cbd5a85efa","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""}],"dist":{"shasum":"c412821e8e939e34dc670d7ae6e0e8cbd5a85efa","size":3669,"noattachment":false,"key":"/loads/-/loads-0.0.2.tgz","tarball":"http://name.csiicloud.com:7001/loads/download/loads-0.0.2.tgz"},"directories":{},"publish_time":1428917005403,"_hasShrinkwrap":false,"_cnpm_publish_time":1428917005403,"_cnpmcore_publish_time":"2021-12-18T20:41:54.453Z"},"0.0.1":{"name":"loads","version":"0.0.1","description":"Dedicated listening for xhr requests.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/unshiftio/loads"},"keywords":["loads","xhr","load","request","ajax"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/unshiftio/loads/issues"},"homepage":"https://github.com/unshiftio/loads","dependencies":{"one-time":"0.0.x","xhr-response":"1.0.x"},"gitHead":"906d0bdb3527e1848c398cafce48c9acae85af6f","_id":"loads@0.0.1","_shasum":"366833499ea749484a166cc9e28f7785ac1f6eb3","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""}],"dist":{"shasum":"366833499ea749484a166cc9e28f7785ac1f6eb3","size":3866,"noattachment":false,"key":"/loads/-/loads-0.0.1.tgz","tarball":"http://name.csiicloud.com:7001/loads/download/loads-0.0.1.tgz"},"directories":{},"publish_time":1427292656980,"_hasShrinkwrap":false,"_cnpm_publish_time":1427292656980,"_cnpmcore_publish_time":"2021-12-18T20:41:54.832Z"},"0.0.0":{"name":"loads","version":"0.0.0","description":"Dedicated listening for xhr requests.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/unshiftio/loads"},"keywords":["loads","xhr","load","request","ajax"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/unshiftio/loads/issues"},"homepage":"https://github.com/unshiftio/loads","_id":"loads@0.0.0","_shasum":"918b2c3618f0b6372922717cc885fd7c1954f503","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""}],"dist":{"shasum":"918b2c3618f0b6372922717cc885fd7c1954f503","size":3004,"noattachment":false,"key":"/loads/-/loads-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/loads/download/loads-0.0.0.tgz"},"directories":{},"publish_time":1424800059954,"_hasShrinkwrap":false,"_cnpm_publish_time":1424800059954,"_cnpmcore_publish_time":"2021-12-18T20:41:55.102Z"}},"readme":"# loads\n\n[![Made by unshift][made-by]](http://unshift.io)[![Version npm][version]](http://browsenpm.org/package/loads)[![Build Status][build]](https://travis-ci.org/unshiftio/loads)[![Dependencies][david]](https://david-dm.org/unshiftio/loads)[![Coverage Status][cover]](https://coveralls.io/r/unshiftio/loads?branch=master)[![IRC channel][irc]](https://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/loads.svg?style=flat-square\n[build]: https://img.shields.io/travis/unshiftio/loads/master.svg?style=flat-square\n[david]: https://img.shields.io/david/unshiftio/loads.svg?style=flat-square\n[cover]: https://img.shields.io/coveralls/unshiftio/loads/master.svg?style=flat-square\n[irc]: https://img.shields.io/badge/IRC-irc.freenode.net%23unshift-00a8ff.svg?style=flat-square\n\nLoads is a small helper library which automatically assigns and listens to the\nvarious of XHR event hooks and emits the corrected and normalized responses over\na supplied EventEmitter instance.\n\n## Installation\n\nThis module was primary developed with browsers in mind and is released in the\npublic npm registry. It can be installed by running:\n\n```\nnpm install --save loads\n```\n\n## Usage\n\n```js\nvar loads = require('loads')\n  , xhr = new XMLHTTPRequest()\n  , EventEmitter = require('events').EventEmitter;\n\nvar ee = new EventEmitter();\nloads(xhr, ee);\n\nee.on('stream', function (data) {\n  // data chunk received.\n});\n\nee.on('end', function () {});\n\nxhr.open(url);\nxhr.send();\n```\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/unshiftio/loads","bugs":{"url":"https://github.com/unshiftio/loads/issues"},"license":"MIT"}