1.0.0 • Published 4 years ago

import-yaml v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

import-yaml Travis CI Build Status

Import a YAML file.

NPM Badge

Install

npm install import-yaml

Usage

const importYaml = require("import-yaml");

const data = importYaml.sync("file.yaml");

console.log(data.value);

API

importYaml(filename)

Returns a promise that resolves with the YAML contents parsed as an object.

importYaml.sync(filename)

Returns the YAML contents parsed as an object.

filename

Type: string

The file to import.