npm-pkginfo-cli
Version:
Command line utility to view info about your current package
17 lines (13 loc) • 322 B
JavaScript
const __DEBUG__ = process.env.NODE_DEBUG_LOGGING ? true : false;
const debug = (...msg) => {
var util = require("util");
function _inspect(data){
console.log(util.inspect(data, true, 3, true));
}
if (__DEBUG__){
_inspect(...msg);
} else {
console.log({...msg});
}
}
export { debug, __DEBUG__ };