{"id":39749526,"url":"https://github.com/sailscastshq/sails-hook-node-fetch","last_synced_at":"2026-01-18T11:24:21.896Z","repository":{"id":57139245,"uuid":"305327259","full_name":"sailscastshq/sails-hook-node-fetch","owner":"sailscastshq","description":"Exposes the light-weight node-fetch module as a built-in helper in your Sails app","archived":false,"fork":false,"pushed_at":"2020-10-19T21:43:16.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-10-02T01:52:15.716Z","etag":null,"topics":["fetch","node-fetch","node-module","nodejs","sails-hook","sailsjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@sailscasts/sails-hook-node-fetch","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/sailscastshq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-19T09:13:26.000Z","updated_at":"2020-12-16T21:50:31.000Z","dependencies_parsed_at":"2022-09-04T17:21:46.718Z","dependency_job_id":null,"html_url":"https://github.com/sailscastshq/sails-hook-node-fetch","commit_stats":null,"previous_names":["sailscasts/sails-hook-node-fetch"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sailscastshq/sails-hook-node-fetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sailscastshq%2Fsails-hook-node-fetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sailscastshq%2Fsails-hook-node-fetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sailscastshq%2Fsails-hook-node-fetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sailscastshq%2Fsails-hook-node-fetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sailscastshq","download_url":"https://codeload.github.com/sailscastshq/sails-hook-node-fetch/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sailscastshq%2Fsails-hook-node-fetch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28535163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"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":["fetch","node-fetch","node-module","nodejs","sails-hook","sailsjs"],"created_at":"2026-01-18T11:24:21.812Z","updated_at":"2026-01-18T11:24:21.878Z","avatar_url":"https://github.com/sailscastshq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sails-hook-node-fetch\n\n[![made in nigeria](https://img.shields.io/badge/made%20in-nigeria-008751.svg?style=for-the-badge)](https://github.com/acekyd/made-in-nigeria)\n\n## Archive Notice\n\n**This package has been archived and is no longer maintained.**\n\n### Why was this package archived?\n\n`@sailscasts/sails-hook-node-fetch` was created to provide a convenient `sails.helpers.fetch` helper for making HTTP requests in Sails.js applications. However, with Node.js 18+ now providing native `fetch` support, this package is no longer necessary.\n\n### Migration\n\nReplace any usage of `sails.helpers.fetch` with the native `fetch` API:\n\n```javascript\n// Before (using sails-hook-node-fetch)\nconst response = await sails.helpers.fetch('https://api.example.com/data')\n\n// After (using native fetch)\nconst response = await fetch('https://api.example.com/data')\nconst data = await response.json()\n```\n\n### Requirements\n\n- Node.js 18.0.0 or higher (for native `fetch` support)\n\n### Related\n\nPackages that previously depended on this hook (like `sails-hook-wish`) have been updated to use native `fetch` instead.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsailscastshq%2Fsails-hook-node-fetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsailscastshq%2Fsails-hook-node-fetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsailscastshq%2Fsails-hook-node-fetch/lists"}