3 ms·
@zds inspect.js should fix this issue, which was written by the Node people to inspect objects in the terminal and take care of circular references. I edited it
by amasad 15y ago
@zds inspect.js should fix this issue, which was written by the Node people to inspect objects in the terminal and take care of circular references. I edited it to make it work on the web https://github.com/amasad/jsrepl/blob/master/util/inspect.js https://github.com/amasad/jsrepl/blob/master/util/inspect.js
Just pass all results from eval to the inspect function and you'll get a nice pretty printed output!
- zds 15y agothanks, amasad. looking into this now!