updated Readme
This commit is contained in:
parent
60d6cddea7
commit
ea5c96ec49
@ -31,9 +31,12 @@ beautylog allows displaying data in nice tables for better overview.
|
||||
|
||||
```javascript
|
||||
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 2","error"]); // adds a row the myTable
|
||||
myTable.push(["check 3","error"]); // adds a row the myTable
|
||||
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)
|
Loading…
Reference in New Issue
Block a user