Socket
Socket
Sign inDemoInstall

yamloader

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    yamloader

Recursively load YAML configuration files from a specified directory


Version published
Maintainers
1
Install size
457 kB
Created

Readme

Source

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
[recursive]booleantruewhether the configuration load is recursive
[yamExt]Array.<string>[".yaml", ".yml"]an array of extensions to match files against

Keywords

FAQs

Last updated on 23 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc