How to use the fail function from npmlog

Find comprehensive JavaScript npmlog.fail code examples handpicked from public code repositorys.

71
72
73
74
75
76
77
78
79
80
npmlogItem.name = i + 1 + ' of ' + stats.files;
npmlogItem.completeWork(1);

// It's possible the file could not be read, parsed or other
if (file.$error) {
        npmlog.fail(null, file.$fileNameBase);
        npmlog.fileError(formatPrefix(ASCII_WARNING, ASCII_COLOR_RED), file.$error.message);
        ++stats.filesWithErrors;
        return;
}
fork icon2
star icon9
watch icon4

+ 3 other calls in file