log-prefix
Prefix calls to console.log, console.warn, etc with whatever you'd like
Example
console;'==> %s <==';console;
yields
before log-prefix
==> after log-prefix <==
You can specify a function instead of a string. The function must return a string to be used (good for dynamic values).
{ return '[' + Date + '] %s' };console;
yields
[1371582989993] hello world
Install
npm install log-prefix
Tests
npm test
License
MIT License