read-yaml-file
Read and parse a YAML file
Last updated 6 years ago by zkochan .
MIT · Repository · Original npm · Tarball · package.json
$ npm 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

  • 3.0.0                                ...           latest (9 months ago)
  • 2.1.0                                ...           next (6 years ago)
  • 2.0.0                                ...           pnpm-temp (7 years ago)

6 Versions

  • 3.0.0                                ...           9 months ago
  • 2.1.0                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           7 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 17
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 0
Last Month 6
Dependencies (2)
Dev Dependencies (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE