Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 30, 2024 via pnpm

node-notifier 10.0.1

A Node.js module for sending notifications on native Mac, Windows (post and pre 8) and Linux (or Growl as fallback)
Package summary
Share
0
issues
2
licenses
6
MIT
5
ISC
Package created
2 Dec 2012
Version published
1 Feb 2022
Maintainers
1
Total deps
11
Direct deps
6
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
growly@1.3.0
is-docker@2.2.1
is-wsl@2.2.0
node-notifier@10.0.1
shellwords@0.1.1
uuid@8.3.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
5 Packages, Including:
isexe@2.0.0
lru-cache@6.0.0
semver@7.6.0
which@2.0.2
yallist@4.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

6
All Dependencies CSV
β“˜ This is a list of node-notifier 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
growly1.3.032.81 kBMIT
prod
is-wsl2.2.01.96 kBMIT
prod
semver7.6.026.57 kBISC
prod
shellwords0.1.11.94 kBMIT
prod
uuid8.3.227.32 kBMIT
prod
which2.0.24.39 kBISC
prod

Visualizations

Frequently Asked Questions

What does node-notifier do?

Node-notifier is a powerful tool that allows you to send cross-platform native notifications using Node.js. It utilizes Notification Center for macOS, notify-osd/libnotify-bin for Linux, Toasters for Windows 8/10, or taskbar balloons for prior Windows versions. If none of these systems are met, it employs Growl as a fallback option. This is the perfect solution for generating native notifications on Mac, Windows, and Linux from within your Node.js applications.

How do you use node-notifier?

To use the node-notifier in your project, you would first need to install it via npm by running npm install --save node-notifier. After successful installation, you can import the package into your script with const notifier = require('node-notifier'). You can then use it to send notifications. Here's a basic example:

const notifier = require('node-notifier');
notifier.notify('Hello, world!');

You can also pass an object with title and message properties to the notify method:

notifier.notify({
  title: 'My notification',
  message: 'Hello, there!'
});

In more advanced scenarios, you may want to have the notifier wait until a user action is taken against the notification. Below is an example of how to implement this:

notifier.notify(
  {
    title: 'My awesome title',
    message: 'Hello from node, Mr. User!',
    wait: true
  },
  function (err, response) {
    // Response is response from notification
  }
);

notifier.on('click', function (notifierObject, options) {
  // Triggers if `wait: true` and user clicks notification
});

notifier.on('timeout', function (notifierObject, options) {
  // Triggers if `wait: true` and notification closes
});

Where are the node-notifier docs?

The comprehensive documentation for node-notifier can be found within the project's repository on GitHub. You can locate valuable resources on specific aspects such as how to use alerts for the Notification Center, Windows Toaster, Windows Balloon, Growl, and Notify-send. Each section provides insights into the functionality, requirements, and offer usage examples. To get started, visit the GitHub page for node-notifier and scroll down to the documentation sections.