notification-for-mac
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

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.

/notification-for-mac/

    Package Sidebar

    Install

    npm i notification-for-mac

    Weekly Downloads

    3

    Version

    2.0.3

    License

    ISC

    Unpacked Size

    261 kB

    Total Files

    11

    Last publish

    Collaborators

    • zt123123