-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Can't disable indentation completely #52
Comments
It was an intentional decision. Why do you need to disable indentation? |
because of lack of quotes, resulting output can be much smaller than |
Interesting use-case. I never thought of using this for anything other than presentation. PR welcome :) |
According to #47 (comment), this should be rejected, or alternatively #47 should be revived. Which one would it be ? |
workaround: const opts = {
indent: new String(''),
};
const code = stringifyObject(obj, opts).replace(/\n/g, ''); |
empty strings are treated as falsey and ignored.
to fix, this line:
could look something like this:
The text was updated successfully, but these errors were encountered: