# elixor

> Observable ( Reactive / Rxjs ) based HTTP client for the browser , reactJs , react native and node.js

Latest version **1.0.7** (published 2020-10-12) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2020-10-12 |
| First published | 2019-02-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 305.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Raj Nandigalla |
| Maintainers | rox.shadow |
| Keywords | React, ReactJS, React-native, Node.js, Observables, Http, rxjs, typescript |

## Links

- npm: https://www.npmjs.com/package/elixor
- Repository: https://github.com/RajNandigalla/Elixor
- Homepage: https://elixor.js.org/
- Issues: https://github.com/RajNandigalla/Elixor/issues
- npm.io page: https://npm.io/package/elixor

## Dependencies (1)

- [rxjs](https://npm.io/package/rxjs.md) ^6.6.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2020-10-12
- 1.0.6 — 2019-03-25
- 1.0.5 — 2019-03-24
- 1.0.4 — 2019-03-23
- 1.0.3 — 2019-03-23
- 1.0.2 — 2019-03-23
- 1.0.1 — 2019-02-25

## README

# Elixor

### Documentation can be found at https://elixor.js.org/

Observable based HTTP client for the React,Browser and Node.JS

-  Make [XMLHttpRequests](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) from the browser
-   Make [http](http://nodejs.org/api/http.html) requests from React , Node.JS
-   Intercept request and response using interceptors.
-   Transform request and response data
-   Cancel requests
-   Automatic transforms for JSON data
-   Client side support for protecting against [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)

## Set up

Using npm:
```bash
$ npm install elixor
```
Using bower:
```bash
$ bower install elixor
```

## Example

Performing a GET Request
```bash
    
import { elixor } from 'elixor';

 elixor.get('https://jsonplaceholder.typicode.com/todos/1')
            .subscribe(r => console.log(r));
     
```

Performing a POST Request

```bash

import { elixor } from 'elixor';

 const opt = {
     name:'Hello World'
 };

 elixor.post('https://jsonplaceholder.typicode.com/posts',opt)
            .subscribe(r => console.log(r));

```

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