Skip to content

Is there a way to change maxFlowStringSingleLineLength ? #288

@eemeli

Description

@eemeli

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions