JSPM

load-yaml-file

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1857585
  • Score
    100M100P100Q198500F
  • License MIT

Package Exports

  • load-yaml-file

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (load-yaml-file) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Load YAML file

Read and parse a YAML file.

Installation

npm install --save load-yaml-file

Usage

const loadYamlFile = require('load-yaml-file')

loadYamlFile('foo.yml').then(data => {
  console.log(data)
  //=> {foo: true}
})

API

loadYamlFile(filepath)

Returns a promise for the parsed YAML.

loadYamlFile.sync(filepath)

Returns the parsed YAML.