I'm using Node.js and I'm having trouble figuring out how could I read a YAML file, replace a value in it, and write the updated value to the YAML file.
I'm currently using the module "yamljs" which allows me to load the YAML file and I've managed to edit the value in the loaded Object.
The only part I need help with, is how to write to the YAML file. Cause for some reason, I can't find the solution for that anywhere, and I'm not even sure if I could use the module for that.
The module does have some command line tools, but I'm not too sure how to use those either.
.yaml
unless your filesystem does not support that. 2) Most YAML parsers/loaders drop meaninful information such as comments, ids doing such round tripping (load-modify-save), the only exeption that I know of is my Python basedruamel.yaml
. – Platinumblond