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.
 
 
 
 

17 rivejä
636 B

  1. var growl = require('./lib/growl')
  2. growl('You have mail!')
  3. growl('5 new messages', { sticky: true })
  4. growl('5 new emails', { title: 'Email Client', image: 'Safari', sticky: true })
  5. growl('Message with title', { title: 'Title'})
  6. growl('Set priority', { priority: 2 })
  7. growl('Show Safari icon', { image: 'Safari' })
  8. growl('Show icon', { image: 'path/to/icon.icns' })
  9. growl('Show image', { image: 'path/to/my.image.png' })
  10. growl('Show png filesystem icon', { image: 'png' })
  11. growl('Show pdf filesystem icon', { image: 'article.pdf' })
  12. growl('Show pdf filesystem icon', { image: 'article.pdf' }, function(){
  13. console.log('callback');
  14. })