read-yaml-file
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

read-yaml-file

Read and parse a YAML file

npm version

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

License

MIT © Zoltan Kochan


This package was forked from load-yaml-file

/read-yaml-file/

    Package Sidebar

    Install

    npm i read-yaml-file

    Weekly Downloads

    1,799,577

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    3.34 kB

    Total Files

    6

    Last publish

    Collaborators

    • zkochan