10gen-labs/mongo-web-shell — pull request #223 by FuegoFro (2013-07-08 23:48:43+00:00)
Title: Redo and consolidate formatting of objects to be more consistent and allow pretty printing.

Took formatting logic from the actual mongo shell. Also got rid of the duplicate print options (toString and stringifyQueryResults) and condensed to both use toString.