eyes
a customizable value inspector for Node.js
synopsis
I was tired of looking at cluttered output in the console -- something needed to be done, sys.inspect()
didn't display regexps correctly, and was too verbose, and I had an hour or two to spare. So I decided to have some fun. eyes were born.
example of the output of a user-customized eyes.js inspector
eyes also deals with circular objects in an intelligent way, and can pretty-print object literals.
usage
or
you can pass a label to inspect()
, to keep track of your inspections:
If you want to return the output of eyes without printing it, you can set it up this way:
customization
These are the default styles and settings used by eyes.
You can overwrite them with your own, by passing a similar object to inspector()
or inspect()
.