load-yaml-file

WebJar for load-yaml-file

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

load-yaml-file
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

load-yaml-file
WebJar for load-yaml-file
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/LinusU/load-yaml-file

Download load-yaml-file

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/load-yaml-file/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>load-yaml-file</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/load-yaml-file/
implementation 'org.webjars.npm:load-yaml-file:0.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/load-yaml-file/
implementation ("org.webjars.npm:load-yaml-file:0.1.1")
'org.webjars.npm:load-yaml-file:jar:0.1.1'
<dependency org="org.webjars.npm" name="load-yaml-file" rev="0.1.1">
  <artifact name="load-yaml-file" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='load-yaml-file', version='0.1.1')
)
libraryDependencies += "org.webjars.npm" % "load-yaml-file" % "0.1.1"
[org.webjars.npm/load-yaml-file "0.1.1"]

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.npm : graceful-fs jar [4.1.5,5)
org.webjars.npm : js-yaml jar [3.13.0,4)
org.webjars.npm : pify jar [2.3.0,3)
org.webjars.npm : strip-bom jar [3.0.0,4)

Project Modules

There are no modules declared in this project.

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.

Related

Versions

Version
0.1.1