{"_id":"xhr-send","_rev":"269038","name":"xhr-send","description":"Send data over the given XHR request.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"3rdeden","email":""}],"time":{"modified":"2023-06-28T12:13:39.000Z","created":"2015-04-07T12:14:04.436Z","1.0.0":"2015-04-07T12:14:04.436Z"},"users":{},"author":{"name":"Arnout Kazemier"},"repository":{"type":"git","url":"https://github.com/unshiftio/xhr-send"},"versions":{"1.0.0":{"name":"xhr-send","version":"1.0.0","description":"Send data over the given XHR request.","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-send"},"keywords":["xhr","send","sent","XMLHTTPRequest"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/unshiftio/xhr-send/issues"},"homepage":"https://github.com/unshiftio/xhr-send","devDependencies":{"assume":"1.2.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x"},"gitHead":"6a0d430110bd5fed19b47294734feb370c21415f","_id":"xhr-send@1.0.0","_shasum":"1a40c73e5db2028ee08fe90f5c3d6dc7f796a854","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""}],"dist":{"shasum":"1a40c73e5db2028ee08fe90f5c3d6dc7f796a854","size":2748,"noattachment":false,"key":"/xhr-send/-/xhr-send-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/xhr-send/download/xhr-send-1.0.0.tgz"},"directories":{},"publish_time":1428408844436,"_hasShrinkwrap":false,"_cnpm_publish_time":1428408844436,"_cnpmcore_publish_time":"2021-12-18T20:41:53.290Z"}},"readme":"# xhr-send\n\n[![Made by unshift][made-by]](http://unshift.io)[![Version npm][version]](http://browsenpm.org/package/xhr-send)[![Build Status][build]](https://travis-ci.org/unshiftio/xhr-send)[![Dependencies][david]](https://david-dm.org/unshiftio/xhr-send)[![Coverage Status][cover]](https://coveralls.io/r/unshiftio/xhr-send?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-send.svg?style=flat-square\n[build]: https://img.shields.io/travis/unshiftio/xhr-send/master.svg?style=flat-square\n[david]: https://img.shields.io/david/unshiftio/xhr-send.svg?style=flat-square\n[cover]: https://img.shields.io/coveralls/unshiftio/xhr-send/master.svg?style=flat-square\n[irc]: https://img.shields.io/badge/IRC-irc.freenode.net%23unshift-00a8ff.svg?style=flat-square\n\nA cross-browser implementation for sending data over the supplied XHR\nconnection.\n\n## Installation\n\n```\nnpm install --save xhr-send\n```\n\n## Usage\n\nThe module requires 3 arguments:\n\n- `xhr` The reference to your constructed `XMLHTTPRequest` instance.\n- `data` The data that needs to be send.\n- `fn` Completion callback that receives the error as first argument.\n\n```js\nvar send = require('xhr-send');\n\nsend(xhr, 'data', function (err) {\n  if (err) return console.error('failed to send because of reasons', err);\n\n  console.log('send without any isseus.');\n});\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/unshiftio/xhr-send","bugs":{"url":"https://github.com/unshiftio/xhr-send/issues"},"license":"MIT"}