$ cnpm install read-yaml-file
Read and parse a YAML file
<npm|yarn|pnpm> add read-yaml-file
const readYamlFile = require('read-yaml-file')
readYamlFile('foo.yml').then(data => {
console.log(data)
//=> {foo: true}
})
Returns a promise for the parsed YAML.
Returns the parsed YAML.
This package was forked from load-yaml-file
Copyright 2013 - present © cnpmjs.org | Home |