eyes.js
eyes.js copied to clipboard
Some changes
Add an option to let the user set the number of spaces to indent objects and arrays:
eyes.defaults:
spaces: 4
In stringifyArray() and stringifyObject() change the hardcoded 4's to option.spaces.
You could always indent the objects, so you could remove the pretty variable from stringifyObject() and use options.pretty.