Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

windows-notification-state

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

windows-notification-state

SHQueryUserNotificationState as a native Node addon

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
413
decreased by-39.88%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 08 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc