webpack + node-notifier = build status system notifications
Installations
npm install webpack-notifier
Developer
Turbo87
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
Yes
Node Version
14.18.0
NPM Version
6.14.15
Statistics
306 Stars
222 Commits
41 Forks
7 Watching
3 Branches
20 Contributors
Updated on 16 Jul 2024
Bundle Size
56.36 kB
Minified
18.27 kB
Minified + Gzipped
Languages
TypeScript (53.34%)
JavaScript (46.66%)
Total Downloads
Cumulative downloads
Total Downloads
135,541,568
Last day
-11.2%
99,431
Compared to previous day
Last week
-7.9%
577,389
Compared to previous week
Last month
33.4%
2,790,691
Compared to previous month
Last year
-11.4%
25,300,006
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
webpack-notifier
This is a webpack plugin that uses the node-notifier package to display build status system notifications to the user.
This is a fork of the webpack-error-notification plugin. It adds support for Windows and there is no need to manually install the
terminal-notifier
package on OS X anymore.
The plugin will notify you about the first run (success/fail), all failed runs and the first successful run after recovering from a build failure. In other words: it will stay silent if everything is fine with your build.
Installation
Use npm
to install this package:
npm install --save-dev webpack-notifier
Check the node-notifier
Requirements
whether you need to install any additional tools for your OS.
Usage
In the webpack.config.js
file:
1var WebpackNotifierPlugin = require('webpack-notifier'); 2 3var config = module.exports = { 4 // ... 5 6 plugins: [ 7 new WebpackNotifierPlugin(), 8 ] 9}
Configuration
All node-notifier
options
You can use any node-notifier options (depending on your OS) Except for options generated by the plugin itself:
title
- it can be not only a string, but also a functionmessage
- generated based on the value of other optionscontentImage
- it can be an object with images for different statusesicon
- matches withcontentImage
Title
Title shown in the notification.
1new WebpackNotifierPlugin({title: 'Webpack'});
1new WebpackNotifierPlugin({title: function (params) { 2 return `Build status is ${params.status} with message ${params.message}`; 3}});
Emojis in message text
Show status emoji icon before the message.
1new WebpackNotifierPlugin({emoji: true});
Content Image
Image shown in the notification. Can be a path string or object with paths.
String path:
1var path = require('path');
2
3new WebpackNotifierPlugin({contentImage: path.join(__dirname, 'logo.png')});
Object string path:
1var path = require('path'); 2 3const statusesPaths = { 4 success: path.join(__dirname, 'success.png'), 5 warning: path.join(__dirname, 'warning.png'), 6 error: path.join(__dirname, 'error.png') 7} 8 9new WebpackNotifierPlugin({contentImage: statusesPaths});
Exclude Warnings
If set to true
, warnings will not cause a notification.
1new WebpackNotifierPlugin({excludeWarnings: true});
Always Notify
Trigger a notification every time. Call it "noisy-mode".
1new WebpackNotifierPlugin({alwaysNotify: true});
Notify on error
Trigger a notification only on error.
1new WebpackNotifierPlugin({onlyOnError: true});
Skip Notification on the First Build
Do not notify on the first build. This allows you to receive notifications on subsequent incremental builds without being notified on the initial build.
1new WebpackNotifierPlugin({skipFirstNotification: true});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: ISC License: LICENSE.md:0
Reason
Found 2/15 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
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/Turbo87/webpack-notifier/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/Turbo87/webpack-notifier/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/Turbo87/webpack-notifier/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/Turbo87/webpack-notifier/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/Turbo87/webpack-notifier/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/Turbo87/webpack-notifier/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:78: update your workflow using https://app.stepsecurity.io/secureworkflow/Turbo87/webpack-notifier/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:80: update your workflow using https://app.stepsecurity.io/secureworkflow/Turbo87/webpack-notifier/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:99: update your workflow using https://app.stepsecurity.io/secureworkflow/Turbo87/webpack-notifier/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:104: update your workflow using https://app.stepsecurity.io/secureworkflow/Turbo87/webpack-notifier/ci.yml/master?enable=pin
- Info: 0 out of 9 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 22 are checked with a SAST tool
Reason
36 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25
- Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx
- Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-434g-2637-qmqr
- Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m
- Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw
- Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p
- Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747
- Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq
- Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488
- Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g
- Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m / GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j
- Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp
Score
2.6
/10
Last Scanned on 2024-11-25
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 MoreOther packages similar to webpack-notifier
simple-update-notifier
Simple update notifier to check for npm updates for cli applications
node-notifier
A Node.js module for sending notifications on native Mac, Windows (post and pre 8) and Linux (or Growl as fallback)
webpack-notifier-2
webpack + node-notifier = build status system notifications
webpack-build-notifier
A Webpack plugin that generates OS notifications for build steps using node-notifier.