Created
August 28, 2013 16:27
-
-
Save shama/6368024 to your computer and use it in GitHub Desktop.
format with a cb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cb = log.format({ | |
message: 'this\nis\na\ntest\n', | |
indent: 1, | |
format: function(line, pad) { | |
return util.format($.cyan('info') + $.gray(' %s') + '%s', pad, line) + (Array(20 - line.length).join('~')); | |
} | |
}); | |
console.log(cb); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment