1.0.12 • Published 5 years ago

arxios v1.0.12

Weekly downloads
4
License
LGPL-3.0-or-later
Repository
github
Last release
5 years ago

Arxios

Build Status Coverage Status

NPM

Observable based HTTP client on top of axios for browser and node.js

Installing

  • npm install arxios rxjs

Using

Can be created as an axios instance and used with same syntax and options, only returns Observables instead of Promises.

const arxios = new Arxios({
  baseURL: 'test.com',
  withCredentials: false,
  headers: {
    'Accept': 'application/json',
    'Content-Type': 'application/json',
  });

arxios.get('users', { params: { show_disabled: 'true' } }).subscribe((user) => {
  [...]
});

Also the internal axios instance is available.

const arxios = new Arxios();
arxios.axiosInstance.interceptors.request.use([...])

TypeScript

Arxios is coded entirely in TypeScript.

Building/Testing

  • npm install
  • npm run build
  • npm run lint
  • npm run test or npm run test:watch
1.0.12

5 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.7

6 years ago