Skip to content

Commit 6830137

Browse files
authored
feat: add lib export to use nopt in non-global mode (#116)
1 parent ce918b9 commit 6830137

File tree

4 files changed

+546
-505
lines changed

4 files changed

+546
-505
lines changed

lib/debug.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* istanbul ignore next */
2+
module.exports = process.env.DEBUG_NOPT || process.env.NOPT_DEBUG
3+
? function () {
4+
console.error.apply(console, arguments)
5+
}
6+
: function () {}

0 commit comments

Comments
 (0)