🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

xhr-send

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xhr-send

Send data over the given XHR request.

1.0.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

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

Keywords

xhr

FAQs

Package last updated on 07 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts