Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

dark-mode

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dark-mode

Toggle the Dark Mode in OS X 10.10

Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
393
-46.16%
Maintainers
1
Weekly downloads
 
Created
Source

node-dark-mode

Toggle the Dark Mode in OS X 10.10 using the dark-mode binary

Install

$ npm install --save dark-mode

Usage

var darkMode = require('dark-mode');

darkMode.toggle(function (err) {
	console.log('toggled between dark and light mode');
});

darkMode.toggle(true, function (err) {
	console.log('forced dark mode');
});

API

darkMode.toggle(force, callback)

force

Type: boolean
Default: null

Force a specific mode, true for dark and false for light.

callback(error)

darkMode.isDark(callback)

callback(error, isDark)

isDark

Type: boolean

Whether the current mode is dark.

CLI

$ npm install --global dark-mode
# toggle between dark and light mode
dark-mode

# force a specific mode
dark-mode --mode Dark
dark-mode --mode Light

# get the current mode
dark-mode --mode
> Light

License

MIT © Sindre Sorhus

Keywords

cli-app

FAQs

Package last updated on 26 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts