# component-ajax

> Standalone AJAX library inspired by jQuery/zepto

Latest version **0.0.2** (published 2013-08-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install component-ajax
pnpm add component-ajax
yarn add component-ajax
bun add component-ajax
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2013-08-29 |
| First published | 2013-04-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 361 |
| Author | ForbesLindesay |
| Maintainers | forbeslindesay |

## Links

- npm: https://www.npmjs.com/package/component-ajax
- Repository: https://github.com/ForbesLindesay/ajax
- Issues: https://github.com/ForbesLindesay/ajax/issues
- npm.io page: https://npm.io/package/component-ajax

## Dependencies (1)

- [type-of](https://npm.io/package/type-of.md) *

## Recent versions

- 0.0.2 (latest) — 2013-08-29
- 0.0.1 — 2013-04-28

## README

ajax
====

Standalone AJAX library inspired by jQuery/zepto

## Installation

[![component](https://component.jit.su/component-badge.svg)](https://component.jit.su/refer/ForbesLindesay/ajax)

```
component-install ForbesLindesay/ajax
```

Then load using:

```JavaScript
var ajax = require('ajax');
```

Or load using a script tag (downloads are available [here](https://component.jit.su/ForbesLindesay/ajax/download))

```html
<script src="ajax.min.js"></script>
```

Then just refer to it in your script as `ajax`

## API

### ajax(url, settings)

**url** A string containing the URL to which the request is sent.
**settings** A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with `ajax.settings`. See ajax(settings) below for a complete list of all settings.

### ajax(settings)

**settings** A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with `ajax.settings`.

For a list of available settings see:

http://api.jquery.com/jQuery.ajax/

## License

  MIT

  If you find it useful, a payment via [gittip](https://www.gittip.com/ForbesLindesay) would be appreciated.

![viewcount](https://viewcount.jepso.com/count/ForbesLindesay/ajax.png)

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