{"id":21957223,"url":"https://github.com/tomleb3/react-headband","last_synced_at":"2026-04-05T20:35:04.383Z","repository":{"id":57688500,"uuid":"475143347","full_name":"tomleb3/react-headband","owner":"tomleb3","description":"A controller for your document titles","archived":false,"fork":false,"pushed_at":"2022-08-19T12:46:52.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T19:11:09.809Z","etag":null,"topics":["controller","document","headband","npm","npm-module","npm-package","react","react-headband","title"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-headband","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/tomleb3.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":"2022-03-28T19:08:51.000Z","updated_at":"2022-03-31T16:56:40.000Z","dependencies_parsed_at":"2022-08-25T18:30:26.418Z","dependency_job_id":null,"html_url":"https://github.com/tomleb3/react-headband","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tomleb3/react-headband","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomleb3%2Freact-headband","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomleb3%2Freact-headband/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomleb3%2Freact-headband/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomleb3%2Freact-headband/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomleb3","download_url":"https://codeload.github.com/tomleb3/react-headband/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomleb3%2Freact-headband/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31449742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["controller","document","headband","npm","npm-module","npm-package","react","react-headband","title"],"created_at":"2024-11-29T08:51:37.522Z","updated_at":"2026-04-05T20:35:04.353Z","avatar_url":"https://github.com/tomleb3.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-headband\n\n\u003e A simple controller for your document titles\n\n[![NPM](https://img.shields.io/npm/v/react-headband.svg)](https://www.npmjs.com/package/react-headband) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save react-headband\n```\n\n## Description\n\n`react-headband` is a lightweight, zero-dependency package that allows you to easily set your document's titles for different routes.\n\n## Usage\n\nIn-order to use `react-headband`, simply import it into your project, then wrap each route declaration with Headband, while setting the desired title as a parameter.\n\nYou can add the optional `scrollToTop` parameter if you wish for that behavior when navigating to the route.\n\n**Example:**\n\n```tsx\nimport React from \"react\";\n\nimport Headband from \"react-headband\";\n\nimport Page1 from \"pages/page1\";\nimport Page2 from \"pages/page2\";\n\nfunction App() {\n  return (\n    \u003cHeadband title=\"Page no. 1\"\u003e\n      \u003cPage1 /\u003e\n    \u003c/Headband\u003e\n    \u003cHeadband title=\"Page no. 2\" scrollToTop\u003e\n      \u003cPage2 /\u003e\n    \u003c/Headband\u003e\n  );\n}\n```\n\n## Notes\n\n- To avoid mismatch between titles and routes, make sure to use Headband on all routes.\n\n## License\n\nMIT © [tomleb3](https://github.com/tomleb3)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomleb3%2Freact-headband","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomleb3%2Freact-headband","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomleb3%2Freact-headband/lists"}