just-build
Version:
A simple task runner that doesn't bloat your package
16 lines (12 loc) • 298 B
JavaScript
var DEBUG = process.argv.some(function (arg) { return arg === "--debug"; });
function log() {
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
if (DEBUG) {
console.debug.apply(console, args);
}
}
module.exports = {
DEBUG: DEBUG,
log: log
};