UNPKG
notify-error
Version:
latest (1.2.0)
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
send an error notifications
github.com/mattdesl/notify-error
mattdesl/notify-error
notify-error
/
index.js
14 lines
(12 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var
notifier =
require
(
'node-notifier'
)
var
assign =
require
(
'object-assign'
) module.exports = notify
function
notify
(
msg, opt
)
{
if
(!msg)
return
notifier.
notify
(
assign
({
title
:
'⚠️ error'
,
sound
:
true
}, opt, {
message
: msg })) }