How to use the assert function from npmlog
Find comprehensive JavaScript npmlog.assert code examples handpicked from public code repositorys.
GitHub: wvbe/node-schematron
108 109 110 111 112 113 114 115 116 117
result.isReport ? npmlog.report( formatPrefix(ASCII_CHECKMARK, ASCII_COLOR_BLUE, result.assertId), result.message.replace(/\s\s+/g, ' ').trim() ) : npmlog.assert( formatPrefix(ASCII_CROSSMARK, ASCII_COLOR_RED, result.assertId), result.message.replace(/\s\s+/g, ' ').trim() ); });
2
9
4
npmlog.verbose is the most popular function in npmlog (7425 examples)