{"id":19185919,"url":"https://github.com/acacode/axios-serializy","last_synced_at":"2025-10-17T12:18:23.807Z","repository":{"id":108458401,"uuid":"198169135","full_name":"acacode/axios-serializy","owner":"acacode","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-17T21:52:49.000Z","size":97,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-04T05:20:49.280Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acacode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-07-22T07:19:57.000Z","updated_at":"2024-08-07T05:22:41.000Z","dependencies_parsed_at":"2023-03-23T11:02:22.257Z","dependency_job_id":null,"html_url":"https://github.com/acacode/axios-serializy","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.4285714285714286,"last_synced_commit":"9564c4ed817ca1af137348815c3185551337cc37"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acacode%2Faxios-serializy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acacode%2Faxios-serializy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acacode%2Faxios-serializy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acacode%2Faxios-serializy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acacode","download_url":"https://codeload.github.com/acacode/axios-serializy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240261499,"owners_count":19773474,"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":"2024-11-09T11:12:30.069Z","updated_at":"2025-10-17T12:18:23.703Z","avatar_url":"https://github.com/acacode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n  \u003ch1\u003eaxios + serializy\u003c/h1\u003e\n\n  [![](https://img.shields.io/badge/license-MIT-red.svg)](./LICENSE)\n  [![](https://img.shields.io/npm/v/axios-serializy.svg)](https://www.npmjs.com/package/axios-serializy)\n  [![](https://img.shields.io/travis/acacode/axios-serializy.svg)](https://travis-ci.org/acacode/axios-serializy)\n  [![](https://www.codefactor.io/repository/github/acacode/axios-serializy/badge/master)](https://www.codefactor.io/repository/github/acacode/axios-serializy/overview/master)\n  [![](https://img.shields.io/npm/dm/axios-serializy.svg)](http://npm-stat.com/charts.html?package=axios-serializy)\n  [![](https://badgen.net/bundlephobia/min/axios-serializy)](https://bundlephobia.com/result?p=axios-serializy)\n  [![](https://badgen.net/bundlephobia/minzip/axios-serializy)](https://bundlephobia.com/result?p=axios-serializy)\n\n  \u003cp\u003e\n    ⚡️ Integration \u003cb\u003eserializy\u003c/b\u003e with \u003cb\u003eaxios\u003c/b\u003e ⚡️\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## 🚀 Installation\n\n    $ npm i -S axios-serializy\n    # or using yarn\n    $ yarn add axios-serializy\n\n## 📚 Usage  \n\n```js\nimport axios from 'axios-serializy'\n\nconst api = axios.create({\n  baseURL: 'https://your-api.com'\n})\n\n// ...\n\nconst { data } = await api.get('/client/1234', {\n  model: ClientModel\n})\n\nconsole.log(data) // your serialized client model\n```  \n\nAlso if you want to serialize error messages from server you need to call `axios.setErrorModel(Model)`  \nBefore creating axios instance\n\n```js\naxios.setErrorModel(YourPrettifiedErrorModel)\n\nconst api = axios.create({\n  baseURL: 'https://your-api.com'\n})\n\n```\n\n\n## 📝 License\n\nLicensed under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facacode%2Faxios-serializy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facacode%2Faxios-serializy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facacode%2Faxios-serializy/lists"}