print-messages
v0.3.2
Published
We console lots, this handles everything
Downloads
14
Readme
print-messages
We console a lot, this handles it all
####Example
var fs, pm, promise, willFail, willSucceed;
fs = require('fs');
promise = require('when');
pm = require('print-messages');
pm.log('log me', 'log me long tim');
pm.warn('warn me', 'warn me long tim');
pm.success('success me', 'success me long tim');
pm.error('error me', 'error me long tim');
pm.node('some failing save message', 'That failed', null);
pm.node('some success message', null, {
results: 'are cool'
});
willSucceed = promise.defer();
pm.promise('This is for a promise', willSucceed.promise);
willSucceed.resolve('That works');
willFail = promise.defer();
pm.promise('Whereas this is for a promise', willFail.promise);
willFail.reject('That fails');