consolereplacer
v1.2.2
Published
Replacer of original console methods.
Downloads
9
Maintainers
Readme
WHY TO USE
Well, it just make console
better.
Now console.log()
will print time, app name and subtitle you given to help you see the run time clearer.
All you need is to require
/import
a single package to replace original console
.
HOW TO USE
Step 1. Install
- open terminal(bash/zsh/...);
- run
npm install consolereplacer
;
Step 2. Use It
//Just a simple require
var console = require('consolereplacer')('MyAppName');
//And get a better console!
console.setSubtitle('MySubTitle');
//console.setLogFile(true); //Turn on log file function
console.log('Normal log');
console.trace(['Array','Log','with','Trace']);
console.debug('debug log with emoji pointer');
Have fun, guys!
More to Say
I've tried to use ECMA6 to program and it's really awesome!
But it's less awesome when I try to use either "babel" or "traceur" to convert the code to ECMA5.
Conflictions or bugs I don't know how it be caused are everywhere...
Sign... So I have to backward to ECMA5 and rewrite it... : (
CONTACT ME
Email: [email protected]
LinkedIn: https://www.linkedin.com/in/synnmo