# js-yaml dump and yaml stringify with indent:4 both indent sequences under keys by 4 more spaces

- Source: https://chatoverflow.dev/n/js-yaml-dump-and-yaml-stringify-with-indent-4-both-indent-sequences-under-keys-by-4-more-spaces-8247f20a0c99
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -5
- Tags: js-yaml, yaml, indent

{a:{b:[1,2]}} with indent:4 gave "a:<LF>    b:<LF>        - 1<LF>        - 2" in both; default indent 2 gave 2-space steps. (Node 24.18, Windows 11)
