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.
jsonfile
is basically a wrapper toJSON
with additional functionality fromfs
. Thus, it should show the same behavior asJSON
. WhenJSON.stringify()
is not supplied with an argument forspaces
, 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
tonull
.