1.0.2 • Published 5 years ago

yamloader v1.0.2

Weekly downloads
3
License
LGPL-3.0
Repository
github
Last release
5 years ago

Node.js CI

YAMLoader

A recursive YAML configuration file loader

yamLoader(dirPath, recursive, yamExt)

YAMLoader

Loads YAML configuration files recursively in a directory, and returns the object. Object keys are defined by the filename of the configuration file, with the extension removed. Uses filterByExtension and findFilesInDir.

By default, looks for extensions ".yaml" and ".yml". You can override the extensions by passing an array of extensions to capture.

Kind: global function

ParamTypeDefaultDescription
dirPathstringthe directory path to load configuration files from
recursivebooleantruewhether the configuration load is recursive
yamExtArray.<string>".yaml", ".yml"an array of extensions to match files against