How to use the npmlog.resume function in npmlog

To help you get started, we’ve selected a few npmlog examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lerna / lerna / core / command / lib / log-package-error.js View on Github external
function directLog(message) {
  log.pause();
  console.error(message); // eslint-disable-line no-console
  log.resume();
}
github marklagendijk / WinLess / WinLess / node_modules / npm / node_modules / node-gyp / lib / node-gyp.js View on Github external
Object.keys(process.env).forEach(function (name) {
    if (name.indexOf(npm_config_prefix) !== 0) return
    var val = process.env[name]
    if (name === npm_config_prefix + 'loglevel') {
      log.level = val
    } else {
      // add the user-defined options to the config
      name = name.substring(npm_config_prefix.length)
      this.opts[name] = val
    }
  }, this)

  if (this.opts.loglevel) {
    log.level = this.opts.loglevel
  }
  log.resume()
}
github GoogleContainerTools / kpt / docsy / node_modules / fsevents / node_modules / node-pre-gyp / lib / node-pre-gyp.js View on Github external
this.opts.argv.remain &&
             this.opts.argv.remain.length) {
            // do nothing
         } else {
            this.opts[name] = val;
         }
      } else {
        this.opts[name] = val;
      }
    }
  }, this);

  if (this.opts.loglevel) {
    log.level = this.opts.loglevel;
  }
  log.resume();
};
github sx1989827 / DOClever / node_modules / fsevents / node_modules / node-pre-gyp / lib / node-pre-gyp.js View on Github external
this.opts.argv.remain &&
             this.opts.argv.remain.length) {
            // do nothing
         } else {
            this.opts[name] = val;
         }
      } else {
        this.opts[name] = val;
      }
    }
  }, this);

  if (this.opts.loglevel) {
    log.level = this.opts.loglevel;
  }
  log.resume();
};
github PamelaLiou / bfadtEnvironments / week_3 / sockets_serialport / listSerialports / node_modules / serialport / node_modules / node-pre-gyp / lib / node-pre-gyp.js View on Github external
this.opts.argv.remain &&
             this.opts.argv.remain.length) {
            // do nothing
         } else {
            this.opts[name] = val;
         }
      } else {
        this.opts[name] = val;
      }
    }
  }, this);

  if (this.opts.loglevel) {
    log.level = this.opts.loglevel;
  }
  log.resume();
};
github ShieldBattery / ShieldBattery / deps / node / deps / npm / lib / utils / lifecycle.js View on Github external
function cb (er) {
    cb_.apply(null, arguments)
    log.resume()
    process.nextTick(dequeue)
  }
github liquidg3 / altair / node_modules / npm / lib / utils / lifecycle.js View on Github external
function cb (er) {
    cb_.apply(null, arguments)
    log.resume()
    process.nextTick(dequeue)
  }
github jxcore / jxcore / deps / npm / lib / utils / lifecycle.js View on Github external
function cb (er) {
    cb_.apply(null, arguments)
    log.resume()
    process.nextTick(dequeue)
  }
github davidhealey / waistline / node_modules / npm / lib / utils / lifecycle.js View on Github external
function cb (er) {
    cb_.apply(null, arguments)
    log.resume()
    process.nextTick(dequeue)
  }