@cjser/anybar
v5.1.0-cjser.2
Published
Control the AnyBar app
Downloads
15
Maintainers
Readme
anybar
Control the AnyBar app
Install
$ npm install anybarUsage
import anybar from 'anybar';
anybar('purple');
// The Anybar app menu bar icon turned purpleAPI
anybar(status, options?)
Returns a promise, but the AnyBar app doesn't send back a reply, so really the only point of waiting for the promise to resolve is in case of an obscure DNS error.
status
Type: string
The name of the color dot you want the AnyBar app to display.
options
Type: Object
port
Type: number
Default: 1738
The port to communicate with the AnyBar app.
Related
- anybar-cli - CLI for this module
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/anybar

