As a developer, how to display notifications on MacOS I am trying to find out how to display a notification on a MacOS (macbook pro) machine.
I see this:

https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/DisplayNotifications.html

(Ideally there would be a Node.js binding to a C library which could allow me to display notifications without launching a child process which then calls apple scripts).

Having trouble finding this info on the google:



is there some API or C / Objective-C library that I can call to display a notification on a MacOS machine?
If you are using Node.js and want to create notifications on multiple platforms including Apple, this library probably has what you want:

https://github.com/mikaelbr/node-notifier

disclaimer: I am not the author