{"id":2508738,"name":"use-network-status-code","ecosystem":"npm","description":"intercept network and get the status","homepage":"https://github.com/calebdeji/use-network-status-code#readme","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/calebdeji/use-network-status-code","keywords_array":["status-code","network-status"],"namespace":null,"versions_count":6,"first_release_published_at":"2020-10-12T09:00:10.451Z","latest_release_published_at":"2020-11-10T06:08:25.859Z","latest_release_number":"1.0.8","last_synced_at":"2026-08-09T05:15:34.559Z","created_at":"2022-04-10T02:47:42.336Z","updated_at":"2026-08-09T05:16:07.964Z","registry_url":"https://www.npmjs.com/package/use-network-status-code","install_command":"npm install use-network-status-code","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"1.0.8"},"contentPolicy":null},"repo_metadata":{"id":57388234,"uuid":"300662786","full_name":"calebdeji/use-network-status-code","owner":"calebdeji","description":"You probably want to redirect a user to the login page or even display a dialog that asks your user to log in anytime a particular endpoint returns a 401 status code (unauthorized). use-network-status-code helps you keep track of the status code returned from the API, with this, you can easily write a component that controls the dialog based on the status code.","archived":false,"fork":false,"pushed_at":"2020-11-10T07:42:05.000Z","size":1429,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T13:39:10.128Z","etag":null,"topics":["hook","react"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/use-network-status-code","language":"TypeScript","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/calebdeji.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-02T15:44:49.000Z","updated_at":"2022-03-25T10:25:45.000Z","dependencies_parsed_at":"2022-09-09T16:01:19.028Z","dependency_job_id":null,"html_url":"https://github.com/calebdeji/use-network-status-code","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/calebdeji/use-network-status-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdeji%2Fuse-network-status-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdeji%2Fuse-network-status-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdeji%2Fuse-network-status-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdeji%2Fuse-network-status-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calebdeji","download_url":"https://codeload.github.com/calebdeji/use-network-status-code/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdeji%2Fuse-network-status-code/sbom","scorecard":{"id":262562,"data":{"date":"2025-08-11","repo":{"name":"github.com/calebdeji/use-network-status-code","commit":"2969bc71db7af5d7b15a4b1e81832e51dfc84f35"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T11:10:06.104Z","repository_id":57388234,"created_at":"2025-08-17T11:10:06.104Z","updated_at":"2025-08-17T11:10:06.104Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36435409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-06T04:43:03.162Z","status":"online","status_checked_at":"2026-08-09T02:00:06.528Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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"},"owner_record":{"login":"calebdeji","name":"P. Caleb Ogunwale","uuid":"33372799","kind":"user","description":"Software Engineer ","email":"","website":null,"location":"Nigeria","twitter":"calebdeji06","company":"@bushaHQ","icon_url":"https://avatars.githubusercontent.com/u/33372799?u=f33f27ea576f73e048fdb9a5ea1882d2f4cb4fb6\u0026v=4","repositories_count":18,"last_synced_at":"2023-03-06T14:39:32.447Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/calebdeji","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-16T16:54:26.986Z","updated_at":"2023-03-06T14:39:32.466Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calebdeji","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calebdeji/repositories"},"tags":[{"name":"1.0.8","sha":"2969bc71db7af5d7b15a4b1e81832e51dfc84f35","kind":"commit","published_at":"2020-11-10T06:06:55.000Z","download_url":"https://codeload.github.com/calebdeji/use-network-status-code/tar.gz/1.0.8","html_url":"https://github.com/calebdeji/use-network-status-code/releases/tag/1.0.8","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/calebdeji/use-network-status-code@1.0.8","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdeji%2Fuse-network-status-code/tags/1.0.8","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdeji%2Fuse-network-status-code/tags/1.0.8/manifests"},{"name":"1.0.4","sha":"d2e1082aea7b52cc80a5ad251d38e1635f54d92b","kind":"commit","published_at":"2020-10-12T09:12:36.000Z","download_url":"https://codeload.github.com/calebdeji/use-network-status-code/tar.gz/1.0.4","html_url":"https://github.com/calebdeji/use-network-status-code/releases/tag/1.0.4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/calebdeji/use-network-status-code@1.0.4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdeji%2Fuse-network-status-code/tags/1.0.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdeji%2Fuse-network-status-code/tags/1.0.4/manifests"},{"name":"1.0.3","sha":"bd80686456793db9c7b40b606d8ecb801f076ff5","kind":"commit","published_at":"2020-10-12T09:00:46.000Z","download_url":"https://codeload.github.com/calebdeji/use-network-status-code/tar.gz/1.0.3","html_url":"https://github.com/calebdeji/use-network-status-code/releases/tag/1.0.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/calebdeji/use-network-status-code@1.0.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdeji%2Fuse-network-status-code/tags/1.0.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdeji%2Fuse-network-status-code/tags/1.0.3/manifests"}]},"repo_metadata_updated_at":"2026-08-09T05:16:07.964Z","dependent_packages_count":1,"downloads":38,"downloads_period":"last-month","dependent_repos_count":1,"rankings":{"downloads":52.33027709200729,"dependent_repos_count":10.398328159825304,"dependent_packages_count":21.093193077124372,"stargazers_count":14.581115041373025,"forks_count":15.478113353967208,"docker_downloads_count":null,"average":22.77620534485944},"purl":"pkg:npm/use-network-status-code","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/use-network-status-code","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/use-network-status-code","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/use-network-status-code/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-07-29T23:24:10.150Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdeji%2Fuse-network-status-code/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/use-network-status-code/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/use-network-status-code/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/use-network-status-code/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/use-network-status-code/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/use-network-status-code/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/use-network-status-code/codemeta","maintainers":[{"uuid":"calebdeji","login":"calebdeji","name":null,"email":"calebdeji06@gmail.com","url":null,"packages_count":1,"html_url":"https://www.npmjs.com/~calebdeji","role":null,"created_at":"2022-11-15T05:51:15.763Z","updated_at":"2022-11-15T05:51:15.763Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/calebdeji/packages"}]}