jprichardson / node-jsonfile

Easily read/write JSON files.
MIT License
1.2k stars 321 forks source link

`jsonfile.spaces` should default to `null` #15

Closed sampathsris closed 10 years ago

sampathsris commented 10 years ago

jsonfile is basically a wrapper to JSON with additional functionality from fs. Thus, it should show the same behavior as JSON. When JSON.stringify() is not supplied with an argument for spaces, it will not beautify the JSON output. Similarly, jsonfile should default to not beautifying the JSON output.

We can achieve this by defaulting jsonfile.spaces to null.

sampathsris commented 10 years ago

Already solved by https://github.com/jprichardson/node-jsonfile/issues/16