Skip to content

Instantly share code, notes, and snippets.

@ryanmr
Created May 16, 2022 22:06
Show Gist options
  • Save ryanmr/1076dbd8b1cd7b83ba74e417f2864d22 to your computer and use it in GitHub Desktop.
Save ryanmr/1076dbd8b1cd7b83ba74e417f2864d22 to your computer and use it in GitHub Desktop.
const YAML = require("yaml");
const data = {
overview: {
str: "this is a string",
num: 5,
},
};
const yml = YAML.stringify(data, {
defaultStringType: "QUOTE_DOUBLE",
});
console.log(yml);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment