{"id":29379564,"url":"https://github.com/beatakr/axios-har-tracker","last_synced_at":"2025-07-28T21:08:55.314Z","repository":{"id":46148859,"uuid":"315228227","full_name":"BeataKr/axios-har-tracker","owner":"BeataKr","description":"This library was designed for gathering HAR files from requests sent using axios","archived":false,"fork":false,"pushed_at":"2024-10-15T05:53:29.000Z","size":423,"stargazers_count":10,"open_issues_count":4,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T00:08:17.044Z","etag":null,"topics":["axios","har","harfile","tracker"],"latest_commit_sha":null,"homepage":"https://github.com/BeataKr/axios-har-tracker","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BeataKr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-23T07:03:52.000Z","updated_at":"2025-05-27T00:55:57.000Z","dependencies_parsed_at":"2024-08-30T14:01:29.906Z","dependency_job_id":"70b2c0e3-5802-460c-b6a0-5932b4e8ac64","html_url":"https://github.com/BeataKr/axios-har-tracker","commit_stats":{"total_commits":90,"total_committers":4,"mean_commits":22.5,"dds":0.5444444444444445,"last_synced_commit":"1ba2f383ec766330c9dce2ec371384f0b701552b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BeataKr/axios-har-tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeataKr%2Faxios-har-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeataKr%2Faxios-har-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeataKr%2Faxios-har-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeataKr%2Faxios-har-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeataKr","download_url":"https://codeload.github.com/BeataKr/axios-har-tracker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeataKr%2Faxios-har-tracker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267585826,"owners_count":24111577,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["axios","har","harfile","tracker"],"created_at":"2025-07-10T02:38:50.656Z","updated_at":"2025-07-28T21:08:55.249Z","avatar_url":"https://github.com/BeataKr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://www.npmjs.com/package/axios-har-tracker\" target=\"_blank\"\u003e![npm](https://img.shields.io/npm/v/axios-har-tracker?color=9cf\u0026style=plastic)\u003c/a\u003e\n\nThis library was designed for gathering HAR files from requests sent using `axios`\n\n# Credits\n\nInspiration and some pieces of the code comes from [maciejmaciejewski/request-har](https://github.com/maciejmaciejewski/request-har)\n\n# Usage\n\nIn order to use this package install it\n\n```js\nnpm install axios-har-tracker\n```\n\nand import it by\n\n```js\nimport { AxiosHarTracker } from \"axios-har-tracker\";\n```\n\nand `axios` package\n\n```js\nimport axios from \"axios\";\n```\n\nwhich will be passed into `AxiosHarTracker` constructor:\n\n```js\nconst axiosTracker = new AxiosHarTracker(axios);\n```\n\nIn order to perform an actual request use the axios.get/post/delete... call, examples:\n\n```js\nawait axios.get(\"http://httpstat.us/200\");\n```\n\nor with catching an error\n\n```js\ntry {\n  await axios.get(\"http://httpstat.us/404\");\n} catch (error) {\n  console.log(\"An error appears after call to https://httpstat.us/404:\", error);\n}\n```\n\nEvery single request is pushed into the object and user can get it by using\n\n```js\nconst generatedObject = axiosTracker.getGeneratedHar();\n```\n\nObject can be saved into a file in any time using e.g.\n\n```js\nwriteFileSync(\"example.har\", JSON.stringify(generatedObject), \"utf-8\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatakr%2Faxios-har-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeatakr%2Faxios-har-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatakr%2Faxios-har-tracker/lists"}