yamloader

1.0.2 • Public • Published

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

Param Type Default Description
dirPath string the directory path to load configuration files from
[recursive] boolean true whether the configuration load is recursive
[yamExt] Array.<string> [".yaml", ".yml"] an array of extensions to match files against

Readme

Keywords

Package Sidebar

Install

npm i yamloader

Weekly Downloads

2

Version

1.0.2

License

LGPL-3.0

Unpacked Size

17.5 kB

Total Files

12

Last publish

Collaborators

  • bilfr3d