anybar
TypeScript icon, indicating that this package has built-in type declarations

5.1.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i anybar

    Weekly Downloads

    17

    Version

    5.1.0

    License

    MIT

    Unpacked Size

    4.06 kB

    Total Files

    5

    Last publish

    Collaborators

    • sindresorhus