1
0
Fork 0

change default yaml dump settings

This commit is contained in:
ChaotiCryptidz 2022-01-21 22:27:31 +00:00
parent e2042747b8
commit b9bdc55b38

View file

@ -33,6 +33,10 @@ export function dumpData(data: Record<string, unknown>, space = 4, syntax = "jso
} else if (syntax == "json5") { } else if (syntax == "json5") {
return JSON5.stringify(data, null, space); return JSON5.stringify(data, null, space);
} else if (syntax == "yaml") { } else if (syntax == "yaml") {
return yaml.dump(data, { indent: space }); return yaml.dump(data, {
indent: space,
quotingType: "\"",
forceQuotes: true
});
} }
} }