Last active
January 24, 2018 08:48
-
-
Save nicokoelewijn/47f8c3141605d2cc9618789bea4a59a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Component triggers the OSX notification pop-up | |
| // | |
| // Usage: | |
| // const notify = require('./notify'); | |
| // notify('hello'); | |
| const osascript = require('node-osascript'); | |
| module.exports = (msg) => { | |
| osascript.execute('display notification "'+ msg +'"'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment