# @barebones/ajax

> A simple Ajax call using fetch(), falling back to XmlHttpRequest for IE10+ support

Latest version **0.0.2** (published 2018-07-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @barebones/ajax
pnpm add @barebones/ajax
yarn add @barebones/ajax
bun add @barebones/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 | 2018-07-17 |
| First published | 2018-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tim Wright |
| Maintainers | timwright12 |

## Links

- npm: https://www.npmjs.com/package/@barebones/ajax
- npm.io page: https://npm.io/package/@barebones/ajax

## Recent versions

- 0.0.2 (latest) — 2018-07-17
- 0.0.1 — 2018-07-17

## README

# @Barebones/Ajax
A simple Ajax call using fetch(), falling back to XmlHttpRequest for IE10+ support

```
npm install @barebones/ajax --save
```

```
import ajax from '@barebones/ajax';

// Ajax Call
ajax( {
	'url' : 'https://csskarma.com/blog/wp-json/wp/v2/pages/1528',
	'type' : 'GET',
	'dataType' : 'json'
	}, function( data ) {
		console.log( data );
	}
);
```

If you're not using ES6, you don't need the `import`, just include the script

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