Read and parse a YAML file.
npm install --save load-yaml-file
const loadYamlFile = require('load-yaml-file')
loadYamlFile('foo.yml').then(data => {
console.log(data)
//=> {foo: true}
})
Returns a promise for the parsed YAML.
Returns the parsed YAML.
- load-json-file - Read and parse a JSON file