Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

test.js 636 B

12 år sedan
12345678910111213141516
  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. })