wrangler-action/node_modules/read-yaml-file/README.md
2023-08-07 15:11:15 -05:00

819 B

read-yaml-file

Read and parse a YAML file

npm version

Installation

npm install --save 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.

License

MIT © Zoltan Kochan


This package was forked from load-yaml-file