{"id":20811345,"url":"https://github.com/ciffelia/fth","last_synced_at":"2026-05-06T09:33:09.170Z","repository":{"id":57242581,"uuid":"408351458","full_name":"ciffelia/fth","owner":"ciffelia","description":"fetch that just works on any modern environments","archived":false,"fork":false,"pushed_at":"2021-09-23T14:09:16.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-19T11:50:56.154Z","etag":null,"topics":["deno","fetch","javascript","nodejs"],"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/ciffelia.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":"2021-09-20T07:39:56.000Z","updated_at":"2023-04-11T15:40:26.000Z","dependencies_parsed_at":"2022-09-13T04:36:50.798Z","dependency_job_id":null,"html_url":"https://github.com/ciffelia/fth","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciffelia%2Ffth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciffelia%2Ffth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciffelia%2Ffth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciffelia%2Ffth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ciffelia","download_url":"https://codeload.github.com/ciffelia/fth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243158972,"owners_count":20245669,"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":["deno","fetch","javascript","nodejs"],"created_at":"2024-11-17T20:40:27.762Z","updated_at":"2025-12-24T09:20:20.222Z","avatar_url":"https://github.com/ciffelia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fth\n\n[![npm](https://img.shields.io/npm/v/fth?logo=npm\u0026style=flat-square)](https://www.npmjs.com/package/fth)\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)\n\n`fetch` that just works on any modern environments\n\nfth is a CommonJS module which exports `fetch`. It uses `node-fetch` on Node.js and native `fetch` on any other environments (e.g. browsers and Deno).\n\nNote that this module does *not* include `fetch` polyfill/ponyfill for legacy browsers.\n\n## Supported environments\n\n- Node.js (via [node-fetch](https://github.com/node-fetch/node-fetch))\n- Modern browsers and Deno (in particular, any environments which imprement [`fetch`](https://caniuse.com/fetch))\n\n## Example\n\n### Node.js\n\n```js\nconst fetch = require('fth')\nconst { Response } = fetch\n\nconst main = async () =\u003e {\n  const resp = await fetch('https://example.com/')\n\n  console.log(resp instanceof Response)\n  console.log(await resp.text())\n}\n\nmain()\n```\n\n### Deno\n\n```js\nimport fetch, { Response } from 'https://esm.sh/fth'\n\nconst resp = await fetch('https://example.com/')\n\nconsole.log(resp instanceof Response)\nconsole.log(await resp.text())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciffelia%2Ffth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fciffelia%2Ffth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciffelia%2Ffth/lists"}