{"id":13602739,"url":"https://github.com/kapetan/titlebar","last_synced_at":"2025-04-05T05:04:51.263Z","repository":{"id":30334899,"uuid":"33887253","full_name":"kapetan/titlebar","owner":"kapetan","description":"Emulate OS X window title bar","archived":false,"fork":false,"pushed_at":"2017-09-14T21:56:20.000Z","size":249,"stargazers_count":488,"open_issues_count":2,"forks_count":37,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-29T04:05:53.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/kapetan.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":"2015-04-13T18:51:19.000Z","updated_at":"2024-08-10T09:01:29.000Z","dependencies_parsed_at":"2022-07-15T19:48:58.762Z","dependency_job_id":null,"html_url":"https://github.com/kapetan/titlebar","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kapetan%2Ftitlebar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kapetan%2Ftitlebar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kapetan%2Ftitlebar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kapetan%2Ftitlebar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kapetan","download_url":"https://codeload.github.com/kapetan/titlebar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289426,"owners_count":20914464,"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":[],"created_at":"2024-08-01T18:01:36.250Z","updated_at":"2025-04-05T05:04:51.229Z","avatar_url":"https://github.com/kapetan.png","language":"JavaScript","readme":"# titlebar\n\nEmulate OS X window title bar. Extracted from [mafintosh/playback](https://github.com/mafintosh/playback). See the [live demo](http://kapetan.github.io/titlebar/demo/index.html).\n\n\tnpm install titlebar\n\n# Usage\n\nUsed with browserify or in a similar enviroment.\n\n```javascript\nvar titlebar = require('titlebar');\n\nvar t = titlebar();\nt.appendTo(document.body);\n\nt.on('close', function(e) {\n\tconsole.log('close');\n});\n\n// t.element exposes the root dom element\nt.element.appendChild(document.createElement('div'));\n\n// Clean up after usage\nt.destroy();\n```\n\nThe returned instance emits four events: `close`, `minimize`, `fullscreen` (each corresponding to one of the stoplight buttons) and `maximize` when double clicking on the title bar area, or holding down alt key and clicking `fullscreen`.\n\nThe initializer function accepts an options object.\n\n- `style` (default `true`): Disable default styling.\n- `draggable` (default `true`): Disable the [-webkit-app-region](https://developer.chrome.com/apps/app_window) CSS property on the root element. Allows a frameless windows to be dragged in an `electron` application.\n","funding_links":[],"categories":["JavaScript","Components"],"sub_categories":["Closed Source","Using Electron"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkapetan%2Ftitlebar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkapetan%2Ftitlebar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkapetan%2Ftitlebar/lists"}