Socket
Socket
Sign inDemoInstall

display-notification

Package Overview
Dependencies
18
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    display-notification

Display a notification (macOS)


Version published
Weekly downloads
209K
decreased by-1.9%
Maintainers
1
Install size
213 kB
Created
Weekly downloads
 

Readme

Source

display-notification

Display a notification (macOS 10.9+)

Install

$ npm install display-notification

Usage

import displayNotification from 'display-notification';

await displayNotification({
	title: 'Unicorns',
	subtitle: 'Rainbows',
	text: 'Cake',
	sound: 'Bottle'
});

API

displayNotification(options)

Returns a promise that resolves when the notification is shown.

options

Specify at least a title or text.

title

Type: string

Title of the notification.

subtitle

Type: string

Subtitle of the notification.

text

Type: string

Content of the notification.

sound

Type: string
Values: Basso Blow Bottle Frog Funk Glass Hero Morse Ping Pop Purr Sosumi Submarine Tink

Name of the sound located in ~/Library/Sounds or /System/Library/Sounds:

Keywords

FAQs

Last updated on 03 May 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc