{"id":18278063,"url":"https://github.com/tanem/use-document-title","last_synced_at":"2025-04-05T04:30:56.442Z","repository":{"id":38708259,"uuid":"190249845","full_name":"tanem/use-document-title","owner":"tanem","description":":fishing_pole_and_fish: A React hook that sets the current title of the document.","archived":false,"fork":false,"pushed_at":"2024-04-13T22:08:44.000Z","size":23200,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T08:37:37.626Z","etag":null,"topics":["document","hooks","javascript","react","react-hooks","title","typescript"],"latest_commit_sha":null,"homepage":"https://npm.im/@tanem/use-document-title","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/tanem.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null}},"created_at":"2019-06-04T17:35:56.000Z","updated_at":"2024-04-15T11:37:11.023Z","dependencies_parsed_at":"2023-10-15T23:43:13.044Z","dependency_job_id":"494ecf84-e704-44d8-997b-ee17f7dfd71e","html_url":"https://github.com/tanem/use-document-title","commit_stats":null,"previous_names":[],"tags_count":159,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanem%2Fuse-document-title","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanem%2Fuse-document-title/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanem%2Fuse-document-title/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanem%2Fuse-document-title/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanem","download_url":"https://codeload.github.com/tanem/use-document-title/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289382,"owners_count":20914463,"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":["document","hooks","javascript","react","react-hooks","title","typescript"],"created_at":"2024-11-05T12:22:50.534Z","updated_at":"2025-04-05T04:30:53.517Z","avatar_url":"https://github.com/tanem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use-document-title\n\n[![npm version][npmv-image]][npmv-url]\n[![build status][gh-actions-image]][gh-actions-url]\n[![coverage status][codecov-image]][codecov-url]\n[![npm downloads][npmd-image]][npmd-url]\n[![minzipped size][minzipped-size-image]][minzipped-size-url]\n\n\u003e A React hook that sets the current title of the document.\n\n## Basic Usage\n\n```jsx\nimport useDocumentTitle from '@tanem/use-document-title'\nimport React from 'react'\nimport ReactDOM from 'react-dom'\n\nconst App = ({ title }) =\u003e {\n  useDocumentTitle(title)\n  return \u003cdiv /\u003e\n}\n\nReactDOM.render(\u003cApp title=\"New title\" /\u003e, document.getElementById('root'))\n```\n\n## Live Examples\n\n- Basic Usage: [Source](https://github.com/tanem/use-document-title/tree/master/examples/basic-usage) | [Sandbox](https://codesandbox.io/s/github/tanem/use-document-title/tree/master/examples/basic-usage)\n\n## API\n\n**Arguments**\n\n- `title` - The new title of the document.\n\n**Example**\n\n```jsx\nuseDocumentTitle('New title')\n```\n\n## Installation\n\n```\n$ npm install @tanem/use-document-title --save\n```\n\nThere are also UMD builds available via [unpkg](https://unpkg.com/):\n\n- https://unpkg.com/@tanem/use-document-title/dist/use-document-title.umd.development.js\n- https://unpkg.com/@tanem/use-document-title/dist/use-document-title.umd.production.js\n\nFor the non-minified development version, make sure you have already included:\n\n- [`React`](https://unpkg.com/react/umd/react.development.js)\n- [`ReactDOM`](https://unpkg.com/react-dom/umd/react-dom.development.js)\n\nFor the minified production version, make sure you have already included:\n\n- [`React`](https://unpkg.com/react/umd/react.production.min.js)\n- [`ReactDOM`](https://unpkg.com/react-dom/umd/react-dom.production.min.js)\n\n## License\n\nMIT\n\n[npmv-image]: https://img.shields.io/npm/v/@tanem/use-document-title.svg?style=flat-square\n[npmv-url]: https://www.npmjs.com/package/@tanem/use-document-title\n[gh-actions-image]: https://img.shields.io/github/actions/workflow/status/tanem/use-document-title/ci.yml?branch=master\u0026style=flat-square\n[gh-actions-url]: https://github.com/tanem/use-document-title/actions?query=workflow%3ACI\n[codecov-image]: https://img.shields.io/codecov/c/github/tanem/use-document-title.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/tanem/use-document-title\n[npmd-image]: https://img.shields.io/npm/dm/@tanem/use-document-title.svg?style=flat-square\n[npmd-url]: https://www.npmjs.com/package/@tanem/use-document-title\n[minzipped-size-image]: https://img.shields.io/bundlephobia/minzip/@tanem/use-document-title?style=flat-square\n[minzipped-size-url]: https://bundlephobia.com/result?p=@tanem/use-document-title\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanem%2Fuse-document-title","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanem%2Fuse-document-title","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanem%2Fuse-document-title/lists"}