0.0.0 • Published 7 years ago
jstransformer-yaml v0.0.0
jstransformer-yaml
YAML support for JSTransformers.
Installation
npm install jstransformer-yaml
API
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: [] }
License
Released into the public domain under the Unlicense.
0.0.0
7 years ago