{"id":23085165,"url":"https://github.com/yooneskh/ynetwork","last_synced_at":"2025-08-16T04:31:14.662Z","repository":{"id":57403938,"uuid":"125914984","full_name":"yooneskh/ynetwork","owner":"yooneskh","description":"Javascript Network request interface and helper.","archived":false,"fork":false,"pushed_at":"2023-04-23T20:04:58.000Z","size":36,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-10T00:54:53.031Z","etag":null,"topics":["axios","javascript","network","request"],"latest_commit_sha":null,"homepage":"","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/yooneskh.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":"2018-03-19T20:16:43.000Z","updated_at":"2023-03-07T07:09:21.000Z","dependencies_parsed_at":"2022-08-26T01:23:28.492Z","dependency_job_id":null,"html_url":"https://github.com/yooneskh/ynetwork","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yooneskh%2Fynetwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yooneskh%2Fynetwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yooneskh%2Fynetwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yooneskh%2Fynetwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yooneskh","download_url":"https://codeload.github.com/yooneskh/ynetwork/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230004713,"owners_count":18158347,"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":["axios","javascript","network","request"],"created_at":"2024-12-16T17:50:11.034Z","updated_at":"2024-12-16T17:50:11.689Z","avatar_url":"https://github.com/yooneskh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YNetwork\nA simple wrapper around axios to simplify making requests and retrieving data.\n\n## What YNetwork provides\n- `async/await`\n- does not throw erros. You always have the response in result and must check for errors yourself. This simplifies some things on frontend. (Opinionated)\n- Simpler access to response attributes. `const { status, result, headers } = await YNetwork.xxx()`\n- Global `headers` that is spread in every request. `YNetwork.headers.xxx = ''`\n- Local headers for every request. `YNetwork.xxx(url, payload, headers)`\n\nYNetwork introduces two concpts which could have been done with axios too but have been made simpler (kind of).\n\n## Short Circuit\nYou can apply multiple short circuits on YNetwork and conditionally and if you return something, that will be used as the result of that request.\n\n## Preprocess\nYou can apply multiple pre processors on the response. Pre processors can change the response or dismiss a response completely.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyooneskh%2Fynetwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyooneskh%2Fynetwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyooneskh%2Fynetwork/lists"}