{"id":22428409,"url":"https://github.com/momsfriendlydevco/faxios","last_synced_at":"2025-03-27T06:43:48.360Z","repository":{"id":209418975,"uuid":"724011430","full_name":"MomsFriendlyDevCo/Faxios","owner":"MomsFriendlyDevCo","description":"Tiny utility wrapper to add Axios functionality to Fetch","archived":false,"fork":false,"pushed_at":"2024-02-25T00:35:37.000Z","size":345,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T12:50:54.979Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MomsFriendlyDevCo.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-11-27T08:04:16.000Z","updated_at":"2023-12-13T00:58:13.000Z","dependencies_parsed_at":"2023-12-14T04:27:42.796Z","dependency_job_id":"d1fca466-ddb6-46f0-97d6-f110b9d00b43","html_url":"https://github.com/MomsFriendlyDevCo/Faxios","commit_stats":null,"previous_names":["momsfriendlydevco/faxios"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MomsFriendlyDevCo%2FFaxios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MomsFriendlyDevCo%2FFaxios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MomsFriendlyDevCo%2FFaxios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MomsFriendlyDevCo%2FFaxios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MomsFriendlyDevCo","download_url":"https://codeload.github.com/MomsFriendlyDevCo/Faxios/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245798538,"owners_count":20673901,"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-12-05T20:14:42.830Z","updated_at":"2025-03-27T06:43:48.340Z","avatar_url":"https://github.com/MomsFriendlyDevCo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"@MomsFriendlyDevCo/Faxios\n=========================\nTiny utility wrapper to add Axios functionality to Fetch.\n\n* **Automatic JSON decoding** - No more silly 'await request.json()` calls\n* **Single object requests** - Throw around single AxiosRequest objects instead of the URL + config (except the URL query bits of course) stuff that Fetch insists you do\n* **Less foot-guns** - URL query strings are automatically handled by the `params` options structure\n* **Multipart data encoding** - Simply pass `{dataType: 'formData'}` to wrap all data inside `new FormData()` structures instead of standard JSON encoding\n* **Simple default injection** - As with Axios, its simple to extend the `defaults` object to include common headers or data entities that should always be used\n* **Error detection + warning (dev mode only)** - Faxios will yell at you nicely if you try to use a feature that you should probably use a full library for like parameter serialization, proxies or agent overrides\n* **Intercept / tap into pre-fetch callbacks** - See the value of the final Fetch URL + FetchConfig while logging - see `onConfig()`\n* **Fully compatible with Cloudflare workers** - ... and all its weird not-quite-JavaScript runtime API\n\n\n```javascript\nimport faxios from '@momsfriendlydevco/faxios';\n\n// Simple posting\nlet {data} = await faxios.post('https://somewebsite.com/api/something', {\n    foo: 1,\n    bar: 2,\n    baz: 3,\n})\n\n\n// Single object AxiosRequest parity\nlet {data} = await faxios({\n    method: 'PUT',\n    url: 'https://somewebsite.com/api/something',\n    auth: { // Handle Base64 basic auth natively\n        username: 'api',\n        password: 'mega-secure-api-token',\n    },\n    dataType: 'formData', // Encode data with `new FormData()` rather than `JSON.stringify()`\n    data: {\n        foo: 1,\n        bar: 2,\n        baz: 3,\n    },\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmomsfriendlydevco%2Ffaxios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmomsfriendlydevco%2Ffaxios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmomsfriendlydevco%2Ffaxios/lists"}