136 lines
19 KiB
JSON
136 lines
19 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "node-notifier@^5.1.2",
|
||
|
"scope": null,
|
||
|
"escapedName": "node-notifier",
|
||
|
"name": "node-notifier",
|
||
|
"rawSpec": "^5.1.2",
|
||
|
"spec": ">=5.1.2 <6.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/react-native"
|
||
|
]
|
||
|
],
|
||
|
"_from": "node-notifier@>=5.1.2 <6.0.0",
|
||
|
"_id": "node-notifier@5.2.1",
|
||
|
"_inCache": true,
|
||
|
"_location": "/node-notifier",
|
||
|
"_nodeVersion": "9.0.0",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "s3://npm-registry-packages",
|
||
|
"tmp": "tmp/node-notifier-5.2.1.tgz_1515866677762_0.4057284016162157"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "mikaelb",
|
||
|
"email": "mikaelbre@gmail.com"
|
||
|
},
|
||
|
"_npmVersion": "5.6.0",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "node-notifier@^5.1.2",
|
||
|
"scope": null,
|
||
|
"escapedName": "node-notifier",
|
||
|
"name": "node-notifier",
|
||
|
"rawSpec": "^5.1.2",
|
||
|
"spec": ">=5.1.2 <6.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/jest/jest-cli",
|
||
|
"/react-native"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-5.2.1.tgz",
|
||
|
"_shasum": "fa313dd08f5517db0e2502e5758d664ac69f9dea",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "node-notifier@^5.1.2",
|
||
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/react-native",
|
||
|
"author": {
|
||
|
"name": "Mikael Brevik"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/mikaelbr/node-notifier/issues"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"growly": "^1.3.0",
|
||
|
"semver": "^5.4.1",
|
||
|
"shellwords": "^0.1.1",
|
||
|
"which": "^1.3.0"
|
||
|
},
|
||
|
"description": "A Node.js module for sending notifications on native Mac, Windows (post and pre 8) and Linux (or Growl as fallback)",
|
||
|
"devDependencies": {
|
||
|
"eslint": "^4.15.0",
|
||
|
"eslint-config-semistandard": "^12.0.0",
|
||
|
"eslint-config-standard": "^11.0.0-beta.0",
|
||
|
"eslint-plugin-import": "^2.8.0",
|
||
|
"eslint-plugin-node": "^5.2.1",
|
||
|
"eslint-plugin-promise": "^3.6.0",
|
||
|
"eslint-plugin-standard": "^3.0.1",
|
||
|
"husky": "^0.14.3",
|
||
|
"jest": "^22.0.6",
|
||
|
"lint-staged": "^6.0.0",
|
||
|
"prettier": "^1.10.2"
|
||
|
},
|
||
|
"directories": {
|
||
|
"example": "example",
|
||
|
"test": "test"
|
||
|
},
|
||
|
"dist": {
|
||
|
"integrity": "sha512-MIBs+AAd6dJ2SklbbE8RUDRlIVhU8MaNLh1A9SUZDUHPiZkWLFde6UNwG41yQHZEToHgJMXqyVZ9UcS/ReOVTg==",
|
||
|
"shasum": "fa313dd08f5517db0e2502e5758d664ac69f9dea",
|
||
|
"tarball": "https://registry.npmjs.org/node-notifier/-/node-notifier-5.2.1.tgz"
|
||
|
},
|
||
|
"gitHead": "9420a38fc329c7700eefd35594319bf3a96227a0",
|
||
|
"homepage": "https://github.com/mikaelbr/node-notifier#readme",
|
||
|
"jest": {
|
||
|
"testRegex": "/test/[^_]*.js",
|
||
|
"testEnvironment": "node",
|
||
|
"setupTestFrameworkScriptFile": "./test/_test-matchers.js"
|
||
|
},
|
||
|
"keywords": [
|
||
|
"notification center",
|
||
|
"mac os x 10.8",
|
||
|
"notify",
|
||
|
"terminal-notifier",
|
||
|
"notify-send",
|
||
|
"growl",
|
||
|
"windows 8 notification",
|
||
|
"toaster",
|
||
|
"notification"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"lint-staged": {
|
||
|
"*.{js,json,css,md}": [
|
||
|
"prettier --write",
|
||
|
"git add"
|
||
|
]
|
||
|
},
|
||
|
"main": "index.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "mikaelb",
|
||
|
"email": "mikaelbre@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "node-notifier",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# node-notifier [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]\n\nSend cross platform native notifications using Node.js. Notification Center for macOS,\nnotify-osd/libnotify-bin for Linux, Toasters for Windows 8/10, or taskbar Balloons for\nearlier Windows versions. Growl is used if none of these requirements are met.\n[Works well with electron](#within-electron-packaging).\n\n![macOS Screenshot](https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/mac.png)\n![Native Windows Screenshot](https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/windows.png)\n\n## Input Example macOS Notification Center\n\n![Input Example](https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/input-example.gif)\n\n## Quick Usage\n\nShow a native notification on macOS, Windows, Linux:\n\n```javascript\nconst notifier = require('node-notifier');\n// String\nnotifier.notify('Message');\n\n// Object\nnotifier.notify({\n title: 'My notification',\n message: 'Hello, there!'\n});\n```\n\n## Requirements\n\n* **macOS**: >= 10.8 or Growl if earlier.\n* **Linux**: `notify-osd` or `libnotify-bin` installed (Ubuntu should have this by default)\n* **Windows**: >= 8, task bar balloon for Windows < 8. Growl as fallback. Growl takes precedence over Windows balloons.\n* **General Fallback**: Growl\n\nSee [documentation and flow chart for reporter choice](./DECISION_FLOW.md)\n\n## Install\n\n```shell\nnpm install --save node-notifier\n```\n\n## CLI\n\nCLI is moved to separate project: https://github.com/mikaelbr/node-notifier-cli\n\n## Cross-Platform Advanced Usage\n\nStandard usage, with cross-platform fallbacks as defined in the\n[reporter flow chart](./DECISION_FLOW.md). All of the options\nbelow will work in a way or another on all platforms.\n\n```javascript\nconst notifier = require('node-notifier');\nconst path = require('path');\n\nnotifier.notify(\n {\n title: 'My awesome title',\n message: 'Hello from node, Mr. User!',\n icon: path.join(__dirname, 'coulson.jpg'), // Absolute path (doesn't work on balloons)\n sound: true, // Only Notification Center or Windows Toasters\n wait: true // Wait with callback, until user action is taken against notification\n },\n function(err, response) {\n // Response is response from notification\n }\n);\n\nnotifier.on('click', function(notifierObject, options) {\n // Triggers if `wait: true` and user clicks notification\n});\n\nnotifier.on('timeout', function(notifierObject, options) {\n // Triggers if `wait: true` and notification closes\n});\n```\n\nYou can also specify what reporter you want to use if you\nwant to customize it or have more specific options per system.\nSee documentation for each reporter below.\n\nExample:\n\n```javascript\nconst NotificationCenter = require('node-notifier/notifiers/notificationcenter');\nnew NotificationCenter(options).notify();\n\nconst NotifySend = require('node-notifier/notifiers/notifysend');\nnew NotifySend(options).notify();\n\nconst WindowsToaster = require('node-notifier/notifiers/toaster');\nnew WindowsToaster(options).notify();\n\nconst Growl = require('node-notifier/notifiers/growl');\nnew Growl(options).notify();\n\nconst WindowsBalloon = require('node-notifier/notifiers/balloon');\nnew WindowsBalloon(options).notify();\n```\n\nOr if you are using several (or you are lazy):\n(note: technically, this takes longer to require)\n\n```javascript\nconst nn = require('node-notifier');\n\nnew nn.NotificationCenter(options).notify();\nnew nn.NotifySend(options).notify();\nnew nn.WindowsToaster(options).notify(options);\nnew nn.WindowsBalloon(options).notify(options);\nnew nn.Growl(options).notify(options);\n```\n\n## Contents\n\n* [Notification Center documentation](#usage-notificationcenter)\n* [Windows Toaster documentation](#usage-windowstoaster)\n* [Windows Balloon documentation](#usage-windowsballoon)\n* [Growl documentation](#usage-growl)\n* [Notify-send documentation](#usage-notifysend)\n\n### Us
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git+ssh://git@github.com/mikaelbr/node-notifier.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"example": "node ./example/message.js",
|
||
|
"example:mac": "node ./example/advanced.js",
|
||
|
"example:mac:input": "node ./example/macInput.js",
|
||
|
"example:windows": "node ./example/toaster.js",
|
||
|
"lint": "eslint example/*.js lib/*.js notifiers/*.js test/**/*.js index.js",
|
||
|
"precommit": "lint-staged",
|
||
|
"pretest": "npm run lint",
|
||
|
"test": "jest"
|
||
|
},
|
||
|
"version": "5.2.1"
|
||
|
}
|