{"id":43494214,"url":"https://github.com/karankraina/node-fetch-timeout","last_synced_at":"2026-02-03T10:20:31.490Z","repository":{"id":44921490,"uuid":"439036352","full_name":"karankraina/node-fetch-timeout","owner":"karankraina","description":"A light-weight wrapper package built on awesome node-fetch package that adds timeout and retry option.","archived":false,"fork":false,"pushed_at":"2022-08-01T08:10:41.000Z","size":189,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-13T03:56:13.717Z","etag":null,"topics":["http-request","node-fetch","node-fetch-retry","node-fetch-timeout","request"],"latest_commit_sha":null,"homepage":"","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/karankraina.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2021-12-16T15:21:46.000Z","updated_at":"2021-12-22T10:11:07.000Z","dependencies_parsed_at":"2022-09-03T17:20:15.500Z","dependency_job_id":null,"html_url":"https://github.com/karankraina/node-fetch-timeout","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":"karankraina/npm-template-package","purl":"pkg:github/karankraina/node-fetch-timeout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karankraina%2Fnode-fetch-timeout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karankraina%2Fnode-fetch-timeout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karankraina%2Fnode-fetch-timeout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karankraina%2Fnode-fetch-timeout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karankraina","download_url":"https://codeload.github.com/karankraina/node-fetch-timeout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karankraina%2Fnode-fetch-timeout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29041058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["http-request","node-fetch","node-fetch-retry","node-fetch-timeout","request"],"created_at":"2026-02-03T10:20:30.476Z","updated_at":"2026-02-03T10:20:31.486Z","avatar_url":"https://github.com/karankraina.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003eWelcome to node-fetch-timeout 👋\u003c/h1\u003e\n\u003cp\u003e\n  \u003ca href=\"https://circleci.com/gh/karankraina/node-fetch-timeout/tree/master\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://circleci.com/gh/karankraina/node-fetch-timeout/tree/master.svg?style=svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/node-fetch-timeout\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/npm/v/node-fetch-timeout.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/karankraina/node-fetch-timeout/blob/master/README.md\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: ISC\" src=\"https://img.shields.io/badge/License-ISC-yellow.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/karankraina\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Twitter: karankraina\" src=\"https://img.shields.io/twitter/follow/karankraina.svg?style=social\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e A light-weight wrapper package built on awesome [node-fetch](https://github.com/node-fetch/node-fetch) package that adds timeout and retry option.\n\n### 🏠 [Homepage](https://github.com/karankraina/node-fetch-timeout)\n\n## Install\n\n```sh\nnpm install node-fetch-timeout\n```\n\n## Usage\n\n### Using require\n\n```sh\n\nconst { request } = require('node-fetch-timeout);\n\n```\n\n### Using ES6 Modules\n\n```sh\n\nimport { request } from 'node-fetch-timeout';\n\n```\n\n\n### Using Promise Chain\n\n```sh\n\nrequest(url, {\n    ...standardRequestHeaders,\n    timeout: 1, // timeout in milliseconds\n    retryCount: 3 // number of retires - defaults to 1\n  }).then(res =\u003e {\n      // res is raw response\n      // use res.json() or res.text()\n      console.log(res);\n  }).catch(err =\u003e { \n      console.log(err); \n  });\n\n```\n### Using Latest Async/Await Syntax\n\n```sh\n\ntry {\n    const res = await request(url, {\n        ...standardRequestHeaders,\n        timeout: 1, // timeout in milliseconds\n        retryCount: 3 // number of retires - defaults to 1\n    });\n    // res is raw response\n    // use res.json() or res.text()\n    console.log(res)\n} catch (error) {\n    console.log(error)\n}\n\n```\n\n\n## Author\n\n👤 **Karan Raina \u003ckaranraina1996@gmail.com\u003e**\n\n* Website: https://karanraina.tech\n* Twitter: [@karankraina](https://twitter.com/karankraina)\n* Github: [@karankraina](https://github.com/karankraina)\n* LinkedIn: [@karankraina](https://linkedin.com/in/karankraina)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](https://github.com/karankraina/node-fetch-timeout/issues). You can also take a look at the [contributing guide](https://github.com/karankraina/node-fetch-timeout/blob/master/CONTRIBUTING.md).\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n***\n_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarankraina%2Fnode-fetch-timeout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarankraina%2Fnode-fetch-timeout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarankraina%2Fnode-fetch-timeout/lists"}