import-yaml
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i import-yaml

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.49 kB

Total Files

6

Last publish

Collaborators

  • richienb