Huge News!Announcing our $40M Series B led by Abstract Ventures.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
  • Socket score

Version published
Weekly downloads
8.9K
increased by4.84%
Maintainers
1
Weekly downloads
 
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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc