A small tool for converting JS Object/Array into YAML. https://www.npmjs.com/package/convert-yaml
$ npm install convert-yaml --save
Build:
$ npm run build
$ npm publish
import JSToYaml from 'convert-yaml';
const text: string = JSToYaml.stringify(myObjectToConvert).value;