Skip to content

Conversation

mkahvi
Copy link
Contributor

@mkahvi mkahvi commented Sep 23, 2025

Implements #80

This mimics js-yaml output as closely as possible to reduce output drift and needing to reconfigure things.

Notable flaws:

  • Old yaml options obviously do not work (e.g. sortKeys)
    • yaml has features for this, but it is not just a boolean and it is by different name
  • js-yaml "smartly" used block folding for long strings while yaml has no such feature. It uses block folding only if newlines are present.
    • This affects only first two lines of large text blocks so it isn't too terrible.

I'm fine if this PR is thrown away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant