Files
30-seconds-of-code/node_modules/yurnalist/examples/messages.js
2019-08-20 15:52:05 +02:00

14 lines
448 B
JavaScript

/* @noflow */
const report = require('../dist');
report.log('A normal message without any decoration');
report.info('An info message');
report.warn('This is a warning');
report.error('A plain error message');
report.error(new Error('A message from an Error object'));
report.success('Congratulations');
report.success('Success with a check', '✔');
report.command('echo "some command"');
report.info(report.lang('savedNewDependencies', 53738));