aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/nopt/lib/debug.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--node_modules/nopt/lib/debug.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/node_modules/nopt/lib/debug.js b/node_modules/nopt/lib/debug.js
new file mode 100644
index 0000000..544ab38
--- /dev/null
+++ b/node_modules/nopt/lib/debug.js
@@ -0,0 +1,5 @@
+/* istanbul ignore next */
+module.exports = process.env.DEBUG_NOPT || process.env.NOPT_DEBUG
+ // eslint-disable-next-line no-console
+ ? (...a) => console.error(...a)
+ : () => {}