mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-22 01:53:24 +01:00
.. | ||
index.d.ts | ||
index.js | ||
LICENSE | ||
package.json | ||
README.md |
read-yaml-file
Read and parse a YAML file
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.
Related
- write-yaml-file - Stringify and write YAML to a file atomically
License
This package was forked from load-yaml-file