Package Exports
- read-yaml-file
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (read-yaml-file) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
read-yaml-file
Read and parse a YAML file
Installation
<npm|yarn|pnpm> add read-yaml-file
Usage
const readYamlFile = require('read-yaml-file')
readYamlFile('foo.yml').then(data => {
console.log(data)
//=> {foo: true}
})
API
readYamlFile(filepath)
Returns a promise for the parsed YAML.
readYamlFile.sync(filepath)
Returns the parsed YAML.
Related
- write-yaml-file - Stringify and write YAML to a file atomically
License
This package was forked from load-yaml-file