this package has been moved to https://github.com/zkochan/packages/tree/master/write-yaml-file
Stringify and write YAML to a file atomically
Creates directories for you as needed.
npm i -S write-yaml-file
const writeYamlFile = require('write-yaml-file')
writeYamlFile('foo.yaml', {foo: true}).then(() => {
console.log('done')
})
Returns a promise.
Same options that can be passed in to js-yaml
Type: number
Default 438
(0666 in octal)
Mode used when writing the file.
- load-yaml-file - Read and parse a YAML file