{"id":30275910,"url":"https://github.com/namesmt/fetch-result-please","last_synced_at":"2026-03-13T23:01:46.243Z","repository":{"id":307081730,"uuid":"1026818814","full_name":"NamesMT/fetch-result-please","owner":"NamesMT","description":"Get a consumable result from a JS fetch `Response`, smartly and easily.","archived":false,"fork":false,"pushed_at":"2025-08-08T04:51:17.000Z","size":95,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-22T04:52:06.977Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/NamesMT.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-26T17:16:56.000Z","updated_at":"2025-10-08T06:23:30.000Z","dependencies_parsed_at":"2025-07-29T11:21:46.490Z","dependency_job_id":"1db55393-c421-4701-99bc-62043a110740","html_url":"https://github.com/NamesMT/fetch-result-please","commit_stats":null,"previous_names":["namesmt/fetch-result-please"],"tags_count":1,"template":false,"template_full_name":"NamesMT/starter-ts","purl":"pkg:github/NamesMT/fetch-result-please","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Ffetch-result-please","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Ffetch-result-please/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Ffetch-result-please/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Ffetch-result-please/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NamesMT","download_url":"https://codeload.github.com/NamesMT/fetch-result-please/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Ffetch-result-please/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30478929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T20:45:58.186Z","status":"ssl_error","status_checked_at":"2026-03-13T20:45:20.133Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-08-16T10:11:31.572Z","updated_at":"2026-03-13T23:01:46.235Z","avatar_url":"https://github.com/NamesMT.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ch1\u003eFetch Result Please!\u003c/h1\u003e\n\n\u003ch3\u003e\u003ccode\u003econst result = await fetchRP(api.$fetch())\u003c/code\u003e\u003c/h3\u003e\n\u003cimg src=\"./branding.svg\" alt=\"Project's branding image\" width=\"320\"/\u003e\n\n\u003c/div\u003e\n\n# fetch-result-please ![TypeScript heart icon](https://img.shields.io/badge/♡-%23007ACC.svg?logo=typescript\u0026logoColor=white)\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Codecov][codecov-src]][codecov-href]\n[![Bundlejs][bundlejs-src]][bundlejs-href]\n[![TypeDoc][TypeDoc-src]][TypeDoc-href]\n\n* [fetch-result-please ](#fetch-result-please-)\n  * [Overview](#overview)\n  * [Features](#features)\n  * [Usage](#usage)\n    * [Install package](#install-package)\n    * [Import and use](#import-and-use)\n  * [Credits](#credits)\n  * [License](#license)\n\n## Overview\n\n**fetch-result-please** helps you get a consumable result from a fetch call with a helper, and a few other features :) (feel free to raise requests).\n\nNote: `fetch-result-please` focuses on being a minimal, helper function that you can just add-in to your existing fetch calls, if you're building things from scratch, it is recommended that you check out and use a proper custom fetch implementation like [`ofetch`](https://github.com/unjs/ofetch), [`ky`](https://github.com/sindresorhus/ky), [`up-fetch`](https://github.com/L-Blondy/up-fetch), etc.\n\n## Features\n\n+ 👌 Smartly parses and return the consumable result from a fetch `Response`.\n+ 🧐 *Submit your feature requests, I'll take a look if it fits the scope*\n\n## Usage\n\n### Install package\n\n```sh\n# npm\nnpm install fetch-result-please\n\n# bun\nbun add fetch-result-please\n\n# pnpm\npnpm install fetch-result-please\n```\n\n### Import and use\n\n```ts\n// ESM\nimport { fetchRP } from 'fetch-result-please'\n\nconst fetchTodo = () =\u003e fetch('https://jsonplaceholder.typicode.com/todos/1')\n\nconst result: { id: number } = await fetchRP(fetchTodo())\n\n// To force a specific response type, pass in `detectResponseType`:\nconst blobResult: Blob = await fetchRP(fetchTodo(), { detectResponseType: () =\u003e 'blob' })\n```\n\n## Credits\n\nCodes are borrowed from [unjs/ofetch](https://github.com/unjs/ofetch), I highly recommend you to try use it first if it's viable for your usecase, `fetch-result-please` focuses more to enhance your existing fetch calls fast, especially in cases where it's wonky or not possible to use a custom fetch implementation directly.\n\n## License\n\n[![License][license-src]][license-href]\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/fetch-result-please?labelColor=18181B\u0026color=F0DB4F\n[npm-version-href]: https://npmjs.com/package/fetch-result-please\n[npm-downloads-src]: https://img.shields.io/npm/dm/fetch-result-please?labelColor=18181B\u0026color=F0DB4F\n[npm-downloads-href]: https://npmjs.com/package/fetch-result-please\n[codecov-src]: https://img.shields.io/codecov/c/gh/namesmt/fetch-result-please/main?labelColor=18181B\u0026color=F0DB4F\n[codecov-href]: https://codecov.io/gh/namesmt/fetch-result-please\n[license-src]: https://img.shields.io/github/license/namesmt/fetch-result-please.svg?labelColor=18181B\u0026color=F0DB4F\n[license-href]: https://github.com/namesmt/fetch-result-please/blob/main/LICENSE\n[bundlejs-src]: https://img.shields.io/bundlejs/size/fetch-result-please?labelColor=18181B\u0026color=F0DB4F\n[bundlejs-href]: https://bundlejs.com/?q=fetch-result-please\n[jsDocs-src]: https://img.shields.io/badge/Check_out-jsDocs.io---?labelColor=18181B\u0026color=F0DB4F\n[jsDocs-href]: https://www.jsdocs.io/package/fetch-result-please\n[TypeDoc-src]: https://img.shields.io/badge/Check_out-TypeDoc---?labelColor=18181B\u0026color=F0DB4F\n[TypeDoc-href]: https://namesmt.github.io/fetch-result-please/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamesmt%2Ffetch-result-please","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamesmt%2Ffetch-result-please","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamesmt%2Ffetch-result-please/lists"}