2.0.0 • Published 7 years ago

check-os-tray-support v2.0.0

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

check-os-tray-support

Check if the current OS supports showing Tray (useful for Electron apps)

npm Build Status

About

Not all OSes support tray icons - this library helps handle unsupported operating systems gracefully.

Installation

Install the library by running npm install check-os-tray-support --save.

Usage

This library exposes a single method to check for support:

const trayIconSupported = require("check-os-tray-support");

if (trayIconSupported()) {
  // build and attach a tray icon
}

License

This project is licensed under the MIT License