0.1.1 • Published 7 years ago

osx-appearance v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

appearance

get or set your Mac OSX's theme

Works on OSX 10.14+, tested on OSX 10.14.12.

Install

$ npm install osx-appearance

Usage

const wallpaper = require('osx-appearance');

(async () => {
 await appearance.toggle();

 const theme = appearance.getTheme();
 // => 'dark'/'light'
})();

API

.availableThemes

Returns: Array<string>

Returns an array containing a list of available themes.

.getTheme()

Returns: string Values: light/dark

Returns a promise that returns the current OSX theme.

.toggle()

Returns a promise that changes the current OSX theme.

.toggle(theme)

Type: string While theme is: 'light'/'dark'

Changes the current OSX appearance to the given theme.

License

MIT © Joseph Masresha

0.1.1

7 years ago

0.1.0

7 years ago