Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

growl

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

growl - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

5

History.md
1.5.0 / 2012-02-08
==================
* Added windows support [perfusorius]
1.4.1 / 2011-12-28

@@ -3,0 +8,0 @@ ==================

35

lib/growl.js

@@ -1,2 +0,1 @@

// Growl - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed)

@@ -43,2 +42,3 @@

, sticky: '-t 0'
, icon: '-i'
, priority: {

@@ -53,2 +53,23 @@ cmd: '-u'

};
break;
case 'Windows_NT':
cmd = {
type: "Windows"
, pkg: "growlnotify"
, msg: ''
, sticky: '/s:true'
, title: '/t:'
, icon: '/i:'
, priority: {
cmd: '/p:'
, range: [
-2
, -1
, 0
, 1
, 2
]
}
};
break;
}

@@ -100,3 +121,3 @@

var image
, args = [cmd.pkg]
, args
, options = options || {}

@@ -107,2 +128,3 @@ , fn = fn || function(){};

if (!cmd) return fn(new Error('growl not supported on this platform'));
args = [cmd.pkg];

@@ -122,4 +144,7 @@ // image

case 'Linux':
args.push('-i ' + image);
args.push(cmd.icon + image);
break;
case 'Windows':
args.push(cmd.icon + '"' + image.replace(/\\/g, "\\\\") + '"');
break;
}

@@ -160,2 +185,6 @@ }

break;
case 'Windows':
args.push('"' + msg + '"');
if (options.title) args.push(cmd.title + '"' + options.title + '"');
break;
}

@@ -162,0 +191,0 @@

2

package.json
{ "name": "growl",
"version": "1.4.1",
"version": "1.5.0",
"description": "Growl unobtrusive notifications",

@@ -4,0 +4,0 @@ "author": "TJ Holowaychuk <tj@vision-media.ca>",

# Growl for nodejs
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).
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). You'll need [growlnotify(1)](http://growl.info/extras.php#growlnotify).

@@ -15,3 +15,3 @@ ## Installation

Install `notify-send` through the [libnotify-bin](packages.ubuntu.com/libnotify-bin) package:
Install `notify-send` through the [libnotify-bin](http://packages.ubuntu.com/libnotify-bin) package:

@@ -24,2 +24,12 @@ $ sudo apt-get install libnotify-bin

### Windows:
Download and install [Growl for Windows](http://www.growlforwindows.com/gfw/default.aspx)
Download [growlnotify](http://www.growlforwindows.com/gfw/help/growlnotify.aspx) - **IMPORTANT :** Unpack growlnotify to a folder that is present in your path!
Install [npm](http://npmjs.org/) and run:
$ npm install growl
## Examples

@@ -26,0 +36,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc