import-yaml
v1.0.0
Published
Import a YAML file.
Downloads
5
Readme
import-yaml
Import a YAML file.
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.