2.0.3 • Published 3 years ago

notification-for-mac v2.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Native Notifier For Mac

This module provides a node API for notifications on Mac OS X.

Demo Preview

demo

Installation

npm install notification-for-mac

Usage

const notifier = require("notification-for-mac");

notifier("Hello World!!!");

notifier("Click me to npm🚀", {
  title: "Hi! I am title",
  subtitle: "I am subtitle😊",
  sound: "Frog",
  open: "https://www.npmjs.com/package/notification-for-mac",
});

Pass an object as the second argument to set additional options:

  • title The notification title. Defaults to "".
  • subtitle The notification subtitle. Defaults to "".
  • message The notification message. Defaults to "".
  • sound The notification sound. Defaults to "default". Sound names are listed in /System/Library/Sounds.