{"id":26387607,"url":"https://github.com/pumpncode/anybar","last_synced_at":"2025-03-17T08:35:16.053Z","repository":{"id":45398865,"uuid":"425466859","full_name":"pumpncode/anybar","owner":"pumpncode","description":"Control AnyBar in Deno","archived":false,"fork":false,"pushed_at":"2024-12-09T10:02:07.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-09T11:19:25.946Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pumpncode.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-07T09:58:20.000Z","updated_at":"2024-12-09T10:02:11.000Z","dependencies_parsed_at":"2022-09-19T10:21:53.639Z","dependency_job_id":null,"html_url":"https://github.com/pumpncode/anybar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pumpncode%2Fanybar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pumpncode%2Fanybar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pumpncode%2Fanybar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pumpncode%2Fanybar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pumpncode","download_url":"https://codeload.github.com/pumpncode/anybar/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244001146,"owners_count":20381707,"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":"2025-03-17T08:35:08.158Z","updated_at":"2025-03-17T08:35:16.036Z","avatar_url":"https://github.com/pumpncode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# anybar\n\nControl [AnyBar](https://github.com/tonsky/AnyBar)\n\n## Note\nRequires the `--unstable` deno flag to be used.\n\n## Usage\n\n```js\nimport anybar from \"https://x.nest.land/anybar@1.0.0/module.js\";\n\nanybar(\"red\");\n// This turns AnyBar menu bar dot red.\n// 🔴\n\nanybar(\"green\", {anybar: 9876});\n// AnyBar could run on a specific port.\n// 🟢\n\nanybar(\"blue\", {anybar: 9876, deno: 54321});\n// If this module needs to run on a specific port for some reason.\n// 🔵\n\n```\n\n## API\n\n### anybar(style, ports)\n\n- Returns: A promise that resolves after the style got sent to AnyBar.\n\n#### style\n\n- Type: `string`\n\nThe [style](https://github.com/tonsky/AnyBar#usage) of the dot you want AnyBar to display.\n\n#### ports\n\n- Type: `object`\n\nThe port options.\n\n##### ports.anybar\n\n- Type: `number`\n- Default: The value of the environment variable `ANYBAR_PORT` or, if that is undefined, `1738`, which is the default port number for AnyBar.\n\nThe UDP port AnyBar runs on.\n\n##### ports.deno\n\n- Type: `number`\n- Default: The lowest free port number in the [\"unassignable\"](https://www.rfc-editor.org/rfc/rfc6335.html#section-8.1.2) range (`49152`-`65535`).\n\nThe port this module should use to communicate with AnyBar. Only numbers between 1024 and 65535 are allowed, anything else will throw a `RangeError`.\n\n## Acknowledgments\n\nThis module, especially the API, was heavily inspired by the [node module for the same purpose](https://github.com/sindresorhus/anybar) by [sindresorhus](https://github.com/sindresorhus).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpumpncode%2Fanybar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpumpncode%2Fanybar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpumpncode%2Fanybar/lists"}