console-awesome

0.0.1 • Public • Published

Console Awesome

The modern Javascript Console


  • light-weight library
  • has NO DEPENDENCIES :)
  • will make your console 10 times prettier than ever!

Open Source Love MIT Licence

forthebadge forthebadge forthebadge

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. ca.l

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");

ca.l

Notice for more important logs we even add a line tracer! ca.l

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

ca.l

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?

Read more on contributing.

Changelog

See the Changelog

License

Copyright (c) 2017 Angel Grablev, https://freedcamp.com Licensed under the MIT license.

Package Sidebar

Install

npm i console-awesome

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • agrublev