UNPKG
@lando/mongo
Version:
edge (1.4.0)
latest (1.4.0)
1.4.0
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
A Lando plugin that provides a tight integration with MongoDB.
github.com/lando/mongo
lando/mongo
@lando/mongo
/
node_modules
/
semver
/
internal
/
debug.js
12 lines
(9 loc)
•
240 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
const
debug = (
typeof
process ===
'object'
&& process.
env
&& process.
env
.
NODE_DEBUG
&&
/\bsemver\b/i
.
test
(process.
env
.
NODE_DEBUG
) ) ?
(
...args
) =>
console
.
error
(
'SEMVER'
, ...args) :
() =>
{}
module
.
exports
= debug