{"id":28200977,"url":"https://github.com/payu/axios-time","last_synced_at":"2025-06-12T18:32:15.799Z","repository":{"id":43911908,"uuid":"291660080","full_name":"PayU/axios-time","owner":"PayU","description":"Axios interceptor for adding request and response times","archived":false,"fork":false,"pushed_at":"2023-07-07T13:12:04.000Z","size":57,"stargazers_count":3,"open_issues_count":7,"forks_count":5,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-05-16T22:14:07.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PayU.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-31T08:35:26.000Z","updated_at":"2022-01-16T07:55:58.000Z","dependencies_parsed_at":"2023-01-31T16:45:51.375Z","dependency_job_id":null,"html_url":"https://github.com/PayU/axios-time","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PayU/axios-time","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayU%2Faxios-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayU%2Faxios-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayU%2Faxios-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayU%2Faxios-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PayU","download_url":"https://codeload.github.com/PayU/axios-time/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayU%2Faxios-time/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259519256,"owners_count":22870327,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-16T22:14:47.425Z","updated_at":"2025-06-12T18:32:15.792Z","avatar_url":"https://github.com/PayU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![npm](https://img.shields.io/npm/v/axios-time)\n\n\n# axios-time\nAxios plugin to measure the actual time it takes for a request to complete\n\n## Installation\nYou can install this plugin using **NPM**\n```bash\n\u003e npm i axios-time\n```\n\n## Basic Usage\nThe example below will add timing data to the request-response cycle.\n```js\nconst axios = require('axios');\nconst axiosTime = require('axios-time');\n\naxiosTime(axios);\n\ntry {\n    const response = await axios.get('/user');\n} catch(err) {\n}\n```\n\nresponse.timings object example:\n\n```js\n{\n  \"timingEnd\": 1599035291441,   // Timestamp of the start of the request (in Unix Epoch milliseconds).\n  \"timingStart\": 1599035289182, // Timestamp when the response ended (in Unix Epoch milliseconds).\n  \"elapsedTime\": 2259           // Duration of the entire request/response in milliseconds.\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpayu%2Faxios-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpayu%2Faxios-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpayu%2Faxios-time/lists"}