-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider accepting a space
option.
#5
Comments
The main use case for this package is to create the same string from the deep-equal objects to be used as a key - in this case the space option is NOT needed (and it only impacts performance). If the object is stringified for the presentation the normal JSON can be used, can't it? |
This was mostly raised for |
I'd still be interested in this. It is correct that I want stable JSON for (test comparisons), but I also need them to be human-readable. |
@epoberezkin I’m not sure how representative this is, but my use case also requires |
Same here, I stable stringify to see diffs in my tests. I don't want to look at one line JSON files. |
One feature that is lost in the transition from
json-stable-stringify
tofast-json-stable-stringify
is the space option. It may be a performance hiccup, but including it would allow easier transition from projects that usejson-stable-stringify
.The text was updated successfully, but these errors were encountered: