console-awesome
v0.0.1
Published
The modern Javascript Console
Downloads
4
Readme
Console Awesome
The modern Javascript Console
- light-weight library
- has NO DEPENDENCIES :)
- will make your console 10 times prettier than ever!
Usages
The console log replacement:
ca.l("some text",{object:"sure"},21313,"cool");
Works same as the console would, just less typing and comes out much prettier.
What if it's very important stuff?
ca.l("normal");
ca.s(); // awesome spacer!
ca.l("!more important");
ca.s(); // awesome spacer!
ca.l("!!very important");
ca.s(); // awesome spacer!
ca.l("!!!extremely important");
Notice for more important logs we even add a line tracer!
But what if you want to display a grouped number of consoles?
ca.g("My Group",'test',{obj:"sad"},2); // nicely grouped
ca.s(10);
ca.g("~My Group",'test',{obj:"sad"},2); // collapsed to save space
As you can see it's highly beneficial to collapse a number of large variables (like a database ajax response) and only expand when needed.
The first string "My Group" is the title of the group. Adding ~ before the title indicates we want to collapse it.
And also notice the .s (spacer) can be passed a value allowing you to add more or less spacing between items.
Contributing
Interested in contributing features and fixes?
Changelog
See the Changelog
License
Copyright (c) 2017 Angel Grablev, https://freedcamp.com Licensed under the MIT license.