{"id":13453663,"url":"https://github.com/sindresorhus/dark-mode","last_synced_at":"2025-04-13T04:59:22.015Z","repository":{"id":48062238,"uuid":"25381487","full_name":"sindresorhus/dark-mode","owner":"sindresorhus","description":"Control the macOS dark mode from the command-line","archived":false,"fork":false,"pushed_at":"2021-10-14T17:32:31.000Z","size":425,"stargazers_count":666,"open_issues_count":2,"forks_count":31,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-04-13T04:59:18.208Z","etag":null,"topics":["binary","cli","cli-app","dark-mode","homebrew","macos","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/sindresorhus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2014-10-17T23:42:44.000Z","updated_at":"2025-03-28T16:27:55.000Z","dependencies_parsed_at":"2022-08-12T17:41:05.140Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/dark-mode","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fdark-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fdark-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fdark-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fdark-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/dark-mode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665758,"owners_count":21142123,"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":["binary","cli","cli-app","dark-mode","homebrew","macos","swift"],"created_at":"2024-07-31T08:00:45.238Z","updated_at":"2025-04-13T04:59:21.988Z","avatar_url":"https://github.com/sindresorhus.png","language":"Swift","readme":"# dark-mode\n\n\u003e Control the macOS dark mode from the command-line\n\nRequires macOS 10.10 or later. macOS 10.13 or earlier needs to download the [Swift runtime support libraries](https://support.apple.com/kb/DL1998).\n\n\u003cimg src=\"screenshot.gif\" width=\"509\"\u003e\n\n## Install\n\n###### [Homebrew](http://brew.sh)\n\n```\n$ brew install dark-mode\n```\n\n###### [npm](https://github.com/sindresorhus/dark-mode-cli)\n\n```\n$ npm install --global dark-mode-cli\n```\n\n###### Manually\n\n[Download](https://github.com/sindresorhus/dark-mode/releases/latest) the binary and put it in `/usr/local/bin`.\n\n## Usage\n\n```\n$ dark-mode --help\n\n  Usage\n    $ dark-mode [command]\n\n  Commands\n    \u003cnone\u003e  Toggle dark mode\n    on      Enable dark mode\n    off     Disable dark mode\n    status  Dark mode status\n```\n\n## Build\n\nRun `./build`. The binary can be found at `./bin/dark-mode`.\n\nBuilding in Xcode works, but it does not export a binary.\n\n## Related\n\n- [node-dark-mode](https://github.com/sindresorhus/node-dark-mode) - Node.js port\n- [alfred-dark-mode](https://github.com/sindresorhus/alfred-dark-mode) - Alfred workflow\n","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["Packages","Utilities","Swift","包","Command-line apps","目录","Developer Tools"],"sub_categories":["Command-line apps","macOS","命令行程序","命令行应用","Command Line Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fdark-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fdark-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fdark-mode/lists"}