Retarded log
Create for lazy programmer 😝 , help you become a lazier programmer but can also be a good pretty logging system 😎
Installation
$ npm install retarded-log
Usage
var log = ;; //print a blank lineThis is a stringlog
=>
// You want a global log, just 1 lineFile1jslog;File2js;
Basic Color include:
=> [ blue, red, green, yellow, white ]
Abbreviation :
=> [ b , r , g , y , w ]
Frequently logging system
// color are presetlog //errorlog //infolog //warninglog //alert
==> output
- Notes: Date time and hour of logger will be include for easy debug process
Image as Ascii
// choose the color that you likelogcolor
- Notes: Image will only be downloaded once and write to a file unless setting or different image is requested. This setting is for sufficient loading rather than make request on every run.
Prettify json as YAML
var obj =test : "test"test1 :something : "something"test2 :something2 :something3 : "something3"///////////////////////////////////////////////////////////;regular printtest: 'test'test1: something: 'something'test2: something2: something3: 'something3'////////////////////////////////////////////////////////log; // only enable oncepretty printtest : 'test'test1:something: 'something'test2:something2:something3: 'something3'/////////////////////////////////////////////////////////////log; // to disable pretty print
Authors
- Lan Nguyen 😛😛😛