Skip to content

tiaanduplessis/axios-timed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

axios-timed

package version package downloads standard-readme compliant package license make a pull request

Time axios requests

Table of Contents

Install

This project uses node and npm.

$ npm install axios-timed
$ # OR
$ yarn add axios-timed

Usage

import axios from 'axios'
import axiosTimed from 'axios-timed'

axiosTimed(axios, response => console.log('ms', response.config.ms))

axios
	.get('https://jsonplaceholder.typicode.com/todos/')
	.then(console.log)
	.catch(console.error)

Contribute

  1. Fork it and create your feature branch: git checkout -b my-new-feature
  2. Commit your changes: git commit -am "Add some feature"
  3. Push to the branch: git push origin my-new-feature
  4. Submit a pull request

License

MIT

Releases

No releases published

Packages

No packages published