Created
May 16, 2022 22:06
-
-
Save ryanmr/1076dbd8b1cd7b83ba74e417f2864d22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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