# xhr-send

> Send data over the given XHR request.

Latest version **1.0.0** (published 2015-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install xhr-send
pnpm add xhr-send
yarn add xhr-send
bun add xhr-send
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-04-07 |
| First published | 2015-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Arnout Kazemier |
| Maintainers | 3rdeden |
| Keywords | xhr, send, sent, XMLHTTPRequest |

## Links

- npm: https://www.npmjs.com/package/xhr-send
- Repository: https://github.com/unshiftio/xhr-send
- Issues: https://github.com/unshiftio/xhr-send/issues
- npm.io page: https://npm.io/package/xhr-send

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-04-07

## README

# xhr-send

[![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)

[made-by]: https://img.shields.io/badge/made%20by-unshift-00ffcc.svg?style=flat-square
[version]: https://img.shields.io/npm/v/xhr-send.svg?style=flat-square
[build]: https://img.shields.io/travis/unshiftio/xhr-send/master.svg?style=flat-square
[david]: https://img.shields.io/david/unshiftio/xhr-send.svg?style=flat-square
[cover]: https://img.shields.io/coveralls/unshiftio/xhr-send/master.svg?style=flat-square
[irc]: https://img.shields.io/badge/IRC-irc.freenode.net%23unshift-00a8ff.svg?style=flat-square

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.

```js
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

---
_Source: https://npm.io/package/xhr-send · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
