UNPKG

243 BJavaScriptView Raw
1"use strict";
2const npmlog = require("npmlog");
3const envs = ['verbose', 'info', 'error', 'warn'];
4const logLevel = envs.indexOf(process.env.LOG_LEVEL) !== -1 ? process.env.LOG_LEVEL : 'info';
5npmlog.level = logLevel;
6module.exports = npmlog;