An open API service indexing awesome lists of open source software.

https://github.com/srph/axios-response-logger

:mega: Axios interceptor which logs responses
https://github.com/srph/axios-response-logger

Last synced: 9 months ago
JSON representation

:mega: Axios interceptor which logs responses

Awesome Lists containing this project

README

          

# axios-response-logger [![npm version](http://img.shields.io/npm/v/axios-response-logger.svg?style=flat-square)](https://npmjs.org/package/axios-response-logger?style=flat-square) [![Build Status](https://img.shields.io/travis/srph/axios-response-logger.svg?style=flat-square)](https://travis-ci.org/srph/axios-response-logger?branch=master)
An interceptor which logs responses

![success response](https://cloud.githubusercontent.com/assets/5093058/10580154/c13bb29e-76ae-11e5-934c-54200dbe8d41.png)
![error response](https://cloud.githubusercontent.com/assets/5093058/10580153/c13a9a4e-76ae-11e5-8b6d-83f693f0de4e.png)

## Installing
```bash
npm install axios-response-logger --save
```

## Usage
Simply require / import the library as part of your bootstrapping (before your requests).
```es6
// es5
require('axios-response-logger');

// es6
import 'axios-response-logger';
```

## Running Tests
```bash
npm test
```