updated Readme

This commit is contained in:
Philipp Kunz 2015-11-16 23:41:50 +01:00
parent 60d6cddea7
commit ea5c96ec49

View File

@ -31,9 +31,12 @@ beautylog allows displaying data in nice tables for better overview.
```javascript ```javascript
var bl = require('beautylog')("os"); //for use in OS console environment var bl = require('beautylog')("os"); //for use in OS console environment
var myTable = bl.table.new("checks") var myTable = bl.table.new("checks"); //you can specify formats to trigger things like the green and red badges
myTable.push(["check 1","success"]); // adds a row the myTable myTable.push(["check 1","success"]); // adds a row the myTable
myTable.push(["check 2","error"]); // adds a row the myTable myTable.push(["check 2","error"]); // adds a row the myTable
myTable.push(["check 3","error"]); // adds a row the myTable myTable.push(["check 3","error"]); // adds a row the myTable
myTable.print(); //prints myTable to the console myTable.print(); //prints myTable to the console
``` ```
The table from the code above looks like this:
![table.png](https://mediaserve.lossless.digital/github.com/pushrocks/beautylog/table.png)