node package manager

anybar

anybar Build Status

Control the AnyBar app

Install

$ npm install --save anybar

Usage

const anybar = require('anybar');
 
anybar('purple');
// The Anybar.app menubar icon turned purple 

API

anybar(status, [options])

Returns a promise, but 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

Name of the color dot you want AnyBar.app to display.

options

Type: Object

port

Type: number
Default: 1738

Port to communicate with the AnyBar.app.

Related

License

MIT © Sindre Sorhus