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
Add option to condense output in flow sequences #358
Conversation
Ok in general, but |
|
Already had that, too, thought it was too long. But you're right, condense is not very clear. |
README.md
Outdated
@@ -182,6 +182,7 @@ options: | |||
- `noRefs` _(default: `false`)_ - if `true`, don't convert duplicate objects into references | |||
- `noCompatMode` _(default: `false`)_ - if `true` don't try to be compatible with older | |||
yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1 | |||
- `condense` _(default: `false`)_ - if `true` flow mode sequences will be condensed, omitting the space between `key: value` or `a, b`. Eg. `'[a,b]'` or `{a:{b:c}}`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear for newbies what is this option for (in real world). May be, add something "may be useful to create compact URL-s"?
I have no personal preferences and english is not my native language. So, i'd suggest you to take timeout for 1 day, may be you will get better ideas. This PR will be accepted, but i'd like it to be ideal if possible :) |
I'll sleep one night over it, leaving you a comment tomorrow with my thoughts on this :) |
Hey, thought about it. In my opinion, Your thoughts on that? :-) |
Great! Could you release this change on npm as well? :) |
On weekend ok? Need to rework pending PR |
No problem, take the time you need! |
published 3.9.0 |
As described in #346, this is useful for using yaml as query parameters in URLs, for example.
Closes #346