js-yaml might be hard to do so https://github.com/nodeca/js-yaml/issues/642 try https://github.com/eemeli/yaml