YAML support for JSTransformers.
npm install jstransformer-yaml
You may also want to use jstransformer-json to change the format of the resulting JSON string.
const yaml = jstransformer(require('jstransformer-yaml'))
const string = `
this: foo
that:
- bar
- baz
`
yaml.render(string)
=> { body: '{"this":"foo","that":["bar","baz"]}',
dependencies: [] }
Released into the public domain under the Unlicense.