UNPKG
atxpaul
Version:
latest (2.2.0)
2.2.0
2.1.1
2.1.0
2.0.0
1.5.0
1.4.0
1.3.0
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
Get to know AtxPaul via NPX!
github.com/atxpaul/atxpaul_npm
atxpaul/atxpaul_npm
atxpaul
/
utils
/
debug.js
15 lines
(14 loc)
•
300 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const
alert =
require
(
'atx-alerts'
);
const
log =
console
.
log
;
module
.
exports
=
(
isDebug,cli
)=>
{
if
(!isDebug){
return
; }
alert
({
type
:
`info`
,
msg
:
`DEBUGGING INFO BELOW`
, })
log
(
`input`
, cli.
input
);
log
(
`flags`
, cli.
flags
);
log
(
'\n'
) }