check-os-tray-support

2.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i check-os-tray-support

Weekly Downloads

5

Version

2.0.0

License

MIT

Unpacked Size

3.54 kB

Total Files

8

Last publish

Collaborators

  • sallar