@stack-inc/windows-notification-state
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

windows-notification-state

SHQueryUserNotificationState, implemented as a native Node addon. If you're looking for a simple solution to check whether or not you should send your user a notification, this is it.

npm install windows-notification-state
const { shQueryUserNotificationState, getNotificationState } = require('windows-notification-state`)

// This will print a number (corresponding with QUERY_USER_NOTIFICATION_STATE)
console.log(shQueryUserNotificationState())

// If you prefer your code to be more readable, you can use the string-based variant.
// This will print the name of the enum (so "QUNS_ACCEPTS_NOTIFICATIONS" instead of 5)
console.log(getNotificationState())

License

MIT, please see LICENSE for details. Copyright (c) 2017 Felix Rieseberg.

Package Sidebar

Install

npm i @stack-inc/windows-notification-state

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

7.46 kB

Total Files

10

Last publish

Collaborators

  • anonrig