GT2/GT2-iOS/node_modules/growly/package.json

96 lines
7.0 KiB
JSON

{
"_args": [
[
{
"raw": "growly@^1.3.0",
"scope": null,
"escapedName": "growly",
"name": "growly",
"rawSpec": "^1.3.0",
"spec": ">=1.3.0 <2.0.0",
"type": "range"
},
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/node-notifier"
]
],
"_from": "growly@>=1.3.0 <2.0.0",
"_id": "growly@1.3.0",
"_inCache": true,
"_location": "/growly",
"_nodeVersion": "0.12.7",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/growly-1.3.0.tgz_1459012218996_0.0014680565800517797"
},
"_npmUser": {
"name": "theabraham",
"email": "abrahamalrajhi@gmail.com"
},
"_npmVersion": "2.12.1",
"_phantomChildren": {},
"_requested": {
"raw": "growly@^1.3.0",
"scope": null,
"escapedName": "growly",
"name": "growly",
"rawSpec": "^1.3.0",
"spec": ">=1.3.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/node-notifier"
],
"_resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz",
"_shasum": "f10748cbe76af964b7c96c93c6bcc28af120c081",
"_shrinkwrap": null,
"_spec": "growly@^1.3.0",
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/node-notifier",
"author": {
"name": "Ibrahim Al-Rajhi",
"email": "abrahamalrajhi@gmail.com",
"url": "http://ibrahimalrajhi.com/"
},
"bugs": {
"url": "http://github.com/theabraham/growly/issues"
},
"dependencies": {},
"description": "Simple zero-dependency Growl notifications using GNTP.",
"devDependencies": {},
"directories": {
"example": "example",
"lib": "lib"
},
"dist": {
"shasum": "f10748cbe76af964b7c96c93c6bcc28af120c081",
"tarball": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz"
},
"gitHead": "bb5d7cdffa7ca05f1430b978dbc8a5f4e776492b",
"homepage": "https://github.com/theabraham/growly#readme",
"keywords": [
"growl",
"growly",
"snarl",
"notifications",
"gntp",
"messages"
],
"license": "MIT",
"main": "lib/growly.js",
"maintainers": [
{
"name": "theabraham",
"email": "abrahamalrajhi@gmail.com"
}
],
"name": "growly",
"optionalDependencies": {},
"readme": "# Growly #\n\nSimple zero-dependency Growl notifications using GNTP.\n\n## Installation ##\n\nInstall growly using `npm`:\n\n```\nnpm install growly\n```\n\nAnd then require it:\n\n```javascript\nvar growly = require('growly');\n```\n\nThis 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.\n\n## Example ##\n\nSending a minimal Growl notification:\n\n```javascript\nvar growly = require('growly');\n\ngrowly.notify('This is as easy as it gets', { title: 'Hello, World!' });\n```\n\nMore examples can be found in the *example/* directory.\n\n## Usage ##\n\nThe growly module exposes only three methods: `Growly.register()`, `Growly.notify()`, and `Growly.setHost()`.\n\n### Growly.register(appname, [appicon], [notifications], [callback]) ###\n\nRegisters 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.\n\n - `appname` the name of the application (required.)\n - `appicon` url, file path, or Buffer instance for an application icon image.\n - `notifications` a list of defined notification types with the following properties:\n - `.label` name used to identify the type of notification being used (required.)\n - `.dispname` name users will see in Growl's preference panel (defaults to `.label`.)\n - `.enabled` whether or not notifications of this type are enabled (defaults to true.)\n - `callback` called when the registration completes; if registration fails, the first argument will be an Error object.\n\nAn example:\n\n```javascript\ngrowly.register('My Application', 'path/to/icon.png', [\n { label: 'success', dispname: 'Success' },\n { label: 'warning', dispname: 'Warning', enabled: false }\n], function(err) {\n console.log(err || 'Registration successful!');\n});\n```\n\n### Growly.notify(text, [opts], [callback]) ###\n\nSends a Growl notification. If an application wasn't registered beforehand with `growly.register()`, a default application will automatically be registered beforesending the notification.\n\n - `text` the body of the notification.\n - `opts` an object with the following properties:\n - `.title` title of the notification.\n - `.icon` url, file path, or Buffer instance for the notification's icon.\n - `.sticky` whether or not to sticky the notification (defaults to false.)\n - `.label` type of notification to use (defaults to the first registered notification type.)\n - `.priority` the priority of the notification from lowest (-2) to highest (2).\n - `.coalescingId` replace/update the matching previous notification. May be ignored.\n - `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'.)\n\nAn example:\n\n```javascript\n/* Assuming an application was registered with a notification type labeled 'warning'. */\ngrowly.notify('Stuffs broken!', { label: 'warning' }, function(err, action) {\n console.log('Action:', action);\n});\n```\n\n### Growly.setHost(host, port) ###\n\nSet 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.\n\n## License ##\n\nCopyright (C) 2014 Ibrahim Al-Rajhi <abrahamalrajhi@gmail.com>\n\nPermission 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:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE 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.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/theabraham/growly.git"
},
"scripts": {},
"version": "1.3.0"
}