{"id":17140596,"url":"https://github.com/alisonmonteiro/change-title-onleave","last_synced_at":"2025-04-13T10:11:14.856Z","repository":{"id":57196872,"uuid":"94357997","full_name":"alisonmonteiro/change-title-onleave","owner":"alisonmonteiro","description":"Change the tab title once its visibility changes","archived":false,"fork":false,"pushed_at":"2017-07-08T04:14:02.000Z","size":673,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-29T13:40:25.217Z","etag":null,"topics":["javascript","page-title","tabs","visibility"],"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/alisonmonteiro.png","metadata":{"files":{"readme":"README.md","changelog":"change-title-onleave.js","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":"2017-06-14T17:48:11.000Z","updated_at":"2024-04-29T01:18:25.000Z","dependencies_parsed_at":"2022-09-15T22:31:10.044Z","dependency_job_id":null,"html_url":"https://github.com/alisonmonteiro/change-title-onleave","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisonmonteiro%2Fchange-title-onleave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisonmonteiro%2Fchange-title-onleave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisonmonteiro%2Fchange-title-onleave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisonmonteiro%2Fchange-title-onleave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alisonmonteiro","download_url":"https://codeload.github.com/alisonmonteiro/change-title-onleave/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695481,"owners_count":21146956,"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":["javascript","page-title","tabs","visibility"],"created_at":"2024-10-14T20:15:11.488Z","updated_at":"2025-04-13T10:11:14.825Z","avatar_url":"https://github.com/alisonmonteiro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## change-title-onleave\n\n\u003e Change the tab title on change its visibility\n\n# ![change-title-onleave](media/example.gif)\n\n### Install\n\nYou can get it on npm/yarn.\n\n```\nnpm install change-title-onleave --save\n```\n\nIf you're not into package management, [download a ZIP file](https://github.com/alisonmonteiro/change-title-onleave/archive/master.zip).\n\n### Usage\n\n```html\n\u003cscript src=\"change-title-onleave.min.js\"\u003e\u003c/script\u003e\n```\n\nNow, you need to instantiate it by passing an object as parameter;\n\n```js\nconst options = {title: 'Hey! 👀', timeout: 1};\nnew ChangeTitleOnLeave(options);\n```\n\nYou can also `require` it:\n\n```js\nconst changeTitle = require('change-title-onleave');\n```\n\n### API\n\n#### ChangeTitleOnLeave([options])\n\n##### options\n\n###### title\n\nType: `string`\n\nA string with the title to apply on the tab\n\n###### timeout\n\nType: `number`\n\nTimeout between the transistion of titles\n\n###### onHidden\n\nType: `function`\n\nIs called when the user leaves the tab.\n\n###### onVisible\n\nType: `function`\n\nIs called when the user goes back to the tab.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falisonmonteiro%2Fchange-title-onleave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falisonmonteiro%2Fchange-title-onleave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falisonmonteiro%2Fchange-title-onleave/lists"}