Package Exports
- load-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 (load-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
Load YAML file
Read and parse a YAML file.
Installation
npm install --save load-yaml-file
Usage
const loadYamlFile = require('load-yaml-file')
loadYamlFile('foo.yml').then(data => {
console.log(data)
//=> {foo: true}
})
API
loadYamlFile(filepath)
Returns a promise for the parsed YAML.
loadYamlFile.sync(filepath)
Returns the parsed YAML.
Related
- load-json-file - Read and parse a JSON file