Stringify and write YAML to a file atomically
npm install write-yaml-file> Stringify and write YAML to a file atomically
Creates directories for you as needed.
```
`js
const writeYamlFile = require('write-yaml-file')
writeYamlFile('foo.yaml', {foo: true}).then(() => {
console.log('done')
})
`
Returns a promise.
#### options
Same options that can be passed in to js-yaml
##### mode
Type: number438
Default (0666 in octal)
Mode used when writing the file.
#### makeDir
Type: booleantrue`
Default:
Creates the directory to which the YAML file is written.
- load-yaml-file - Read and parse a YAML file