debug.js 226 B

123456789
  1. const debug = (
  2. typeof process === 'object' &&
  3. process.env &&
  4. process.env.NODE_DEBUG &&
  5. /\bsemver\b/i.test(process.env.NODE_DEBUG)
  6. ) ? (...args) => console.error('SEMVER', ...args)
  7. : () => {}
  8. module.exports = debug