# axios-eve

> A axios api for postpress

Latest version **1.2.6** (published 2021-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install axios-eve
pnpm add axios-eve
yarn add axios-eve
bun add axios-eve
```

## 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.2.6 |
| Published | 2021-08-27 |
| First published | 2019-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 30.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gustavo Coelho |
| Maintainers | gutorc92 |
| Keywords | xhr, http, ajax, promise, node, eve |

## Links

- npm: https://www.npmjs.com/package/axios-eve
- Repository: https://github.com/gutorc92/eve-axios
- Homepage: https://github.com/gutorc92/eve-axios#readme
- Issues: https://github.com/gutorc92/eve-axios/issues
- npm.io page: https://npm.io/package/axios-eve

## Dependencies (9)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [axios](https://npm.io/package/axios.md) >=0.21.1
- [core-js](https://npm.io/package/core-js.md) 2
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.4.4
- [lodash.isempty](https://npm.io/package/lodash.isempty.md) ^4.4.0
- [lodash.replace](https://npm.io/package/lodash.replace.md) ^4.1.4
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.4.4
- [lodash.includes](https://npm.io/package/lodash.includes.md) ^4.3.0
- [lodash.camelcase](https://npm.io/package/lodash.camelcase.md) ^4.3.0

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.2.6 (latest) — 2021-08-27
- 1.2.5 — 2020-05-15
- 1.2.4 — 2020-03-18
- 1.2.3 — 2020-03-18
- 1.2.2 — 2019-10-28
- 1.2.1 — 2019-10-04
- 1.2.0 — 2019-10-03
- 1.1.7 — 2019-09-15
- 1.1.6 — 2019-09-15
- 1.1.5 — 2019-09-15
- 1.1.4 — 2019-07-26
- 1.1.3 — 2019-07-11
- 1.1.2 — 2019-07-10
- 1.1.1 — 2019-07-03
- 1.1.0 — 2019-06-26
- … 1 more at https://npm.io/package/axios-eve/versions

## README

# axios-eve

Promise based HTTP client for api build up on [eve-framework](https://docs.python-eve.org/)

## Installing

Using npm:

```bash
$ npm install axios-eve
```

## Example

```js

// declare endpoits
let config =  [
        {
            "url": "area",
            "type": "eve",
            "methods": ["GET"]
        },
        {
            "url": "questions",
            "type": "eve",
            "methods": ["GET"]
        },
        {
            "url": "user",
            "type": "eve",
            "methods": ["GET"]
        },
        {
            "url": "user/admin",
            "type": "eve",
            "methods": ["POST"]
        },
        {
            "url": "area/{name}",
            "type": "eve",
            "methods": ["GET"] 
        }
    ]

let api = new Api({
  urls: config,
  baseURL: 'http://localhost:8000',
  headers: {
      'Cache-Control': 'no-cache'
  },
  timeout: 1500
})

// return areas
api.getArea({})

// return page 2 
api.getQuestions({page: 2})

// sort by name
api.getUser({sort: {name: 1}})

```

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