How to use macos-notification-state - 2 common examples

To help you get started, we’ve selected a few macos-notification-state examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Foundry376 / Mailspring / app / src / native-notifications.ts View on Github external
doNotDisturb() {
    if (platform === 'win32' && require('windows-quiet-hours').getIsQuietHours()) {
      return true;
    }
    if (platform === 'darwin' && require('macos-notification-state').getDoNotDisturb()) {
      return true;
    }
    return false;
  }
github Foundry376 / Mailspring / app / src / native-notifications.es6 View on Github external
doNotDisturb() {
    if (platform === 'win32' && require('windows-quiet-hours').getIsQuietHours()) {
      return true;
    }
    if (platform === 'darwin' && require('macos-notification-state').getDoNotDisturb()) {
      return true;
    }
    return false;
  }

macos-notification-state

macOS notification state as a native node addon

MIT
Latest version published 9 months ago

Package Health Score

59 / 100
Full package analysis

Popular macos-notification-state functions