Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pmuellr/console-table

implementation of console.table in plain ole text
https://github.com/pmuellr/console-table

Last synced: about 2 months ago
JSON representation

implementation of console.table in plain ole text

Awesome Lists containing this project

README

        

console-table
=============

-- NOT READY FOR PRIME TIME --
==============================

An implementation of `console.table()` in plain ole text.

For more info, see:

* [FireBug Console API](http://getfirebug.com/wiki/index.php/Console_API#console.table.28data.5B.2C_columns.5D.29)
* [Jan Odvarko's blog post](http://www.softwareishard.com/blog/firebug/tabular-logs-in-firebug/)
* [the WebKit bug](https://bugs.webkit.org/show_bug.cgi?id=38664)
* [Patrick Mueller's paper](http://muellerware.org/papers/console-table.html)

node API
--------

Use console-table as a node package:

consoleTable = require("console-table")
consoleTable(someObject)

or if you don't mind monkey-patching `console`:

console.table = require("console-table")
console.table(someObject)

browser API
-----------

include the following script in your HTML:



That will add a `table` function to `console`, then use it as:

console.table(someObject)

The browser version of `console-table.js` is in the `lib-browser`
directory.

building and testing
--------------------

See the `Makefile` and the `.wr` files.