anybar

Control the AnyBar app

Usage no npm install needed!

<script type="module">
  import anybar from 'https://cdn.skypack.dev/anybar';
</script>

README

anybar

Control the AnyBar app

Install

$ npm install anybar

Usage

import anybar from 'anybar';

anybar('purple');
// The Anybar app menu bar icon turned purple

API

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