Socket
Socket
Sign inDemoInstall

xhr-send

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    xhr-send

Send data over the given XHR request.


Version published
Weekly downloads
7.9K
increased by0.1%
Maintainers
1
Install size
6.00 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 07 Apr 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc