1.2.2 • Published 8 years ago

consolereplacer v1.2.2

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

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

  1. open terminal(bash/zsh/...);
  2. 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: Maplemx@gmail.com

LinkedIn: https://www.linkedin.com/in/synnmo