# getajax

> Smallest possible lib to execute ajax GET call

Latest version **0.0.3** (published 2017-03-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install getajax
pnpm add getajax
yarn add getajax
bun add getajax
```

## 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.3 |
| Published | 2017-03-16 |
| First published | 2017-03-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ryszard Jakielski |
| Maintainers | rlayeh |

## Links

- npm: https://www.npmjs.com/package/getajax
- Repository: https://github.com/rlayeh/getajax
- Homepage: https://github.com/rlayeh/getajax#readme
- Issues: https://github.com/rlayeh/getajax/issues
- npm.io page: https://npm.io/package/getajax

## Recent versions

- 0.0.3 (latest) — 2017-03-16
- 0.0.2 — 2017-03-16
- 0.0.1 — 2017-03-16

## README

# Smallest possible lib for ajax call

A simple and easy way to fetch data from your server.

It is NOT supporting CORS.

It is NOT adding advanced error handling.

It is just supporting simplest possible GET call to the server.
If you are building small website and used library size matters - then getajax is created for you!

Minified file size ~157 bytes!

## Installation

Using npm

`npm install --save getajax`

## Usage

ES6:

`import getajax from "getajax";`

CommonJS

`require("getajax")`

## Using function in your code

To fetch something from the server simply execute:

`getajax(path, successCallback, exceptionCallback)`

Example:

```
getajax("myfile.json", result => {
  console.log(result);
},
xhr => {
  throw xhr;
})
```

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