Gathering detailed insights and metrics for growly
Gathering detailed insights and metrics for growly
Gathering detailed insights and metrics for growly
Gathering detailed insights and metrics for growly
npm install growly
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
46 Stars
31 Commits
2 Forks
3 Watchers
2 Branches
4 Contributors
Updated on May 03, 2025
Latest Version
1.3.0
Package Id
growly@1.3.0
Size
32.81 kB
NPM Version
2.12.1
Node Version
0.12.7
Published on
Mar 26, 2016
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
No dependencies detected.
Simple zero-dependency Growl notifications using GNTP.
Install growly using npm
:
npm install growly
And then require it:
1var growly = require('growly');
This module uses the Growl Network Transport Protocol (GNTP) which was implemented in Growl since version 1.3, so you must have an appropriate version of Growl installed for Growly to work.
Sending a minimal Growl notification:
1var growly = require('growly'); 2 3growly.notify('This is as easy as it gets', { title: 'Hello, World!' });
More examples can be found in the example/ directory.
The growly module exposes only three methods: Growly.register()
, Growly.notify()
, and Growly.setHost()
.
Registers a new application with Growl. Registration is completely optional since it will be performed automatically for you with sensible defaults. Useful if you want your application, with its own icon and types of notifications, to show up in Growl's prefence panel.
appname
the name of the application (required.)appicon
url, file path, or Buffer instance for an application icon image.notifications
a list of defined notification types with the following properties:
.label
name used to identify the type of notification being used (required.).dispname
name users will see in Growl's preference panel (defaults to .label
.).enabled
whether or not notifications of this type are enabled (defaults to true.)callback
called when the registration completes; if registration fails, the first argument will be an Error object.An example:
1growly.register('My Application', 'path/to/icon.png', [ 2 { label: 'success', dispname: 'Success' }, 3 { label: 'warning', dispname: 'Warning', enabled: false } 4], function(err) { 5 console.log(err || 'Registration successful!'); 6});
Sends a Growl notification. If an application wasn't registered beforehand with growly.register()
, a default application will automatically be registered beforesending the notification.
text
the body of the notification.opts
an object with the following properties:
.title
title of the notification..icon
url, file path, or Buffer instance for the notification's icon..sticky
whether or not to sticky the notification (defaults to false.).label
type of notification to use (defaults to the first registered notification type.).priority
the priority of the notification from lowest (-2) to highest (2)..coalescingId
replace/update the matching previous notification. May be ignored.callback
called when the user has closed/clicked the notification. The callback is passed an Error object err
as the first argument when the notification fails; otherwise, the second argument action
is a string that'll describe which action has been taken by the user (either 'closed' or 'clicked'.)An example:
1/* Assuming an application was registered with a notification type labeled 'warning'. */ 2growly.notify('Stuffs broken!', { label: 'warning' }, function(err, action) { 3 console.log('Action:', action); 4});
Set the host and port that Growl (GNTP) requests will be sent to. Using this method is optional since GNTP defaults to using host 'localhost' and port 23053.
Copyright (C) 2014 Ibrahim Al-Rajhi abrahamalrajhi@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 3/30 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More