Dieses Repository beinhaltet HTML- und Javascript Code zur einer NotizenWebApp auf Basis von Web Storage. Zudem sind Mocha/Chai Tests im Browser enthalten. https://meinenotizen.netlify.app/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Readme.md 3.8KB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # Growl for nodejs
  2. [![Build Status](https://travis-ci.org/tj/node-growl.svg?branch=master)](https://travis-ci.org/tj/node-growl)
  3. Growl support for Nodejs. This is essentially a port of my [Ruby Growl Library](http://github.com/visionmedia/growl). Ubuntu/Linux support added thanks to [@niftylettuce](http://github.com/niftylettuce).
  4. ## Installation
  5. ### Install
  6. ### Mac OS X (Darwin):
  7. Install [growlnotify(1)](http://growl.info/extras.php#growlnotify). On OS X 10.8, Notification Center is supported using [terminal-notifier](https://github.com/alloy/terminal-notifier). To install:
  8. $ sudo gem install terminal-notifier
  9. Install [npm](http://npmjs.org/) and run:
  10. $ npm install growl
  11. ### Ubuntu (Linux):
  12. Install `notify-send` through the [libnotify-bin](http://packages.ubuntu.com/libnotify-bin) package:
  13. $ sudo apt-get install libnotify-bin
  14. Install [npm](http://npmjs.org/) and run:
  15. $ npm install growl
  16. ### Windows:
  17. Download and install [Growl for Windows](http://www.growlforwindows.com/gfw/default.aspx)
  18. Download [growlnotify](http://www.growlforwindows.com/gfw/help/growlnotify.aspx) - **IMPORTANT :** Unpack growlnotify to a folder that is present in your path!
  19. Install [npm](http://npmjs.org/) and run:
  20. $ npm install growl
  21. ## Examples
  22. Callback functions are optional
  23. ```javascript
  24. var growl = require('growl')
  25. growl('You have mail!')
  26. growl('5 new messages', { sticky: true })
  27. growl('5 new emails', { title: 'Email Client', image: 'Safari', sticky: true })
  28. growl('Message with title', { title: 'Title'})
  29. growl('Set priority', { priority: 2 })
  30. growl('Show Safari icon', { image: 'Safari' })
  31. growl('Show icon', { image: 'path/to/icon.icns' })
  32. growl('Show image', { image: 'path/to/my.image.png' })
  33. growl('Show png filesystem icon', { image: 'png' })
  34. growl('Show pdf filesystem icon', { image: 'article.pdf' })
  35. growl('Show pdf filesystem icon', { image: 'article.pdf' }, function(err){
  36. // ... notified
  37. })
  38. ```
  39. ## Options
  40. - title
  41. - notification title
  42. - name
  43. - application name
  44. - priority
  45. - priority for the notification (default is 0)
  46. - sticky
  47. - weither or not the notification should remainin until closed
  48. - image
  49. - Auto-detects the context:
  50. - path to an icon sets --iconpath
  51. - path to an image sets --image
  52. - capitalized word sets --appIcon
  53. - filename uses extname as --icon
  54. - otherwise treated as --icon
  55. - exec
  56. - manually specify a shell command instead
  57. - appends message to end of shell command
  58. - or, replaces `%s` with message
  59. - optionally prepends title (example: `title: message`)
  60. - examples: `{exec: 'tmux display-message'}`, `{exec: 'echo "%s" > messages.log}`
  61. ## License
  62. (The MIT License)
  63. Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>
  64. Copyright (c) 2016 Joshua Boy Nicolai Appelman <joshua@jbna.nl>
  65. Permission is hereby granted, free of charge, to any person obtaining
  66. a copy of this software and associated documentation files (the
  67. 'Software'), to deal in the Software without restriction, including
  68. without limitation the rights to use, copy, modify, merge, publish,
  69. distribute, sublicense, and/or sell copies of the Software, and to
  70. permit persons to whom the Software is furnished to do so, subject to
  71. the following conditions:
  72. The above copyright notice and this permission notice shall be
  73. included in all copies or substantial portions of the Software.
  74. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
  75. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  76. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  77. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  78. CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  79. TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  80. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.