@spotxyz/node-notifier

v10.0.1-2
A Node.js module for sending notifications on native Mac, Windows (post and pre 8) and Linux (or Growl as fallback)
notification center mac os x 10.8 notify terminal-notifier notify-send growl windows 8 notification toaster notification and 1 more...

pretest

npm run lint

test

jest

example

node ./example/message.js

example:mac

node ./example/advanced.js

example:mac:input

node ./example/macInput.js

example:windows

node ./example/toaster.js

example:windows:actions

node ./example/toaster-with-actions.js

example:windows:custom-path

cross-env DEBUG=notifier node ./example/toaster-custom-path.js

copy-resources

copyfiles -u 2 ./vendor/snoreToast/snoretoast-x64.exe ./dist/example/resources/ && copyfiles -u 1 ./example/coulson.jpg ./dist/example/resources/

preexample:windows:nexe-custom-path

rimraf dist

example:windows:nexe-custom-path

nexe -t windows-x64-14.15.3 -i ./example/toaster-custom-path.js -o ./dist/toaster-custom-path.exe && npm run copy-resources

postexample:windows:nexe-custom-path

cross-env DEBUG=notifier ./dist/toaster-custom-path.exe

lint

eslint example/*.js lib/*.js notifiers/*.js test/**/*.js index.js
npm i @spotxyz/node-notifier

Metadata

  • MIT
  • Whatever
  • Mikael Brevik
  • released 5/11/2022

Downloads