eyes.js icon indicating copy to clipboard operation
eyes.js copied to clipboard

Some changes

Open gagle opened this issue 12 years ago • 0 comments

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.

gagle avatar Feb 15 '13 22:02 gagle