├── .gitattributes
├── dark-mode
├── .editorconfig
├── package.json
├── readme.md
└── license
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto eol=lf
2 |
--------------------------------------------------------------------------------
/dark-mode:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sindresorhus/dark-mode-cli/HEAD/dark-mode
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = tab
5 | end_of_line = lf
6 | charset = utf-8
7 | trim_trailing_whitespace = true
8 | insert_final_newline = true
9 |
10 | [*.yml]
11 | indent_style = space
12 | indent_size = 2
13 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "dark-mode-cli",
3 | "version": "3.0.1",
4 | "description": "Control the macOS dark mode from the command-line",
5 | "license": "MIT",
6 | "repository": "sindresorhus/dark-mode-cli",
7 | "author": {
8 | "name": "Sindre Sorhus",
9 | "email": "sindresorhus@gmail.com",
10 | "url": "https://sindresorhus.com"
11 | },
12 | "bin": {
13 | "dark-mode": "dark-mode"
14 | },
15 | "files": [
16 | "dark-mode"
17 | ],
18 | "keywords": [
19 | "cli-app",
20 | "cli",
21 | "macos",
22 | "dark",
23 | "mode",
24 | "control",
25 | "toggle"
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # dark-mode-cli
2 |
3 | > Control the macOS dark mode from the command-line
4 |
5 | *Requires macOS 10.10 or later. macOS 10.13 or earlier needs to download the [Swift runtime support libraries](https://support.apple.com/kb/DL1998).*
6 |
7 | Convenience npm package for the [`dark-mode` binary](https://github.com/sindresorhus/dark-mode).
8 |
9 |
10 |
11 | ## Install
12 |
13 | ```sh
14 | npm install --global dark-mode-cli
15 | ```
16 |
17 | ## Usage
18 |
19 | ```
20 | $ dark-mode --help
21 |
22 | Usage
23 | $ dark-mode [command]
24 |
25 | Commands
26 | Toggle dark mode
27 | on Enable dark mode
28 | off Disable dark mode
29 | status Dark mode status
30 | ```
31 |
32 | ## Related
33 |
34 | - [node-dark-mode](https://github.com/sindresorhus/node-dark-mode) - API for this module
35 |
--------------------------------------------------------------------------------
/license:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) Sindre Sorhus (https://sindresorhus.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 |
--------------------------------------------------------------------------------