read-yaml-file
Read and parse a YAML file
Last updated 5 years ago by zkochan .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install read-yaml-file 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.1.0                                ...           latest (5 years ago)
  • 2.1.0                                ...           next (5 years ago)
  • 2.0.0                                ...           pnpm-temp (6 years ago)

5 Versions

  • 2.1.0                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           6 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.0                                ...           7 years ago

Copyright 2013 - present © cnpmjs.org | Home |