-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Is there a way to change maxFlowStringSingleLineLength ? #288
Comments
I found a way, but it's not at all obvious: import { YAMLMap } from 'yaml'
Object.getPrototypeOf(YAMLMap).maxFlowStringSingleLineLength Given that this is technically possible already now without API changes, I'm going to close this as |
Thank you so much! This does exactly what I was hoping. Thank you for looking into this so quickly and for providing this suggestion. I would have never come up with that 🤣 Thanks again! |
This should address issues eemeli#288 and eemeli#507.
This should address issues eemeli#288 and eemeli#507.
This should address issues eemeli#288 and eemeli#507.
This should address issues eemeli#288 and eemeli#507.
This should address issues eemeli#288 and eemeli#507.
Discussed in #286
Originally posted by codebot June 17, 2021
Hello 👋 Thank you for publishing this great library.
I have a small question:
I am trying to read-modify-write some existing YAML files without generating a giant diff, and would like to change
Collection.maxFlowStringSingleLineLength
from its hard-coded value of 60 to a larger number:https://github.com/eemeli/yaml/blob/master/src/nodes/Collection.ts#L43
Is it possible to do this from user code?
Thank you.
The intent was for this to be externally accessible, but it certainly doesn't look like it currently is.
The text was updated successfully, but these errors were encountered: