marcello3d / node-tosource

Converts JavaScript objects to source
https://github.com/marcello3d/node-tosource
zlib License
101 stars 16 forks source link

Show index of circular references and trim of code to 80 columns #7

Closed piranna closed 10 years ago

piranna commented 10 years ago

The index could allow to identify what's the instance that is doing the circular reference (maybe in the future could be added support to set a reference to it when decoding the object, maybe exporting someway the list of seen objects).

The limit to 80 columns makes it easier to read the code, I didn't do it on the regular expresion but it would be also possible setting it by a string and a RegEx object constructor.

marcello3d commented 10 years ago

Could you remove the column change. I use 120 columns in all my projects. Thanks.