xhr-send

1.0.0 • Public • Published

xhr-send

Made by unshiftVersion npmBuild StatusDependenciesCoverage StatusIRC channel

A cross-browser implementation for sending data over the supplied XHR connection.

Installation

npm install --save xhr-send

Usage

The module requires 3 arguments:

  • xhr The reference to your constructed XMLHTTPRequest instance.
  • data The data that needs to be send.
  • fn Completion callback that receives the error as first argument.
var send = require('xhr-send');
 
send(xhr, 'data', function (err) {
  if (err) return console.error('failed to send because of reasons', err);
 
  console.log('send without any isseus.');
});

License

MIT

/xhr-send/

    Package Sidebar

    Install

    npm i xhr-send

    Weekly Downloads

    6,328

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • 3rdeden