Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 372 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 372 Bytes

Bara file loader

Easily load supported file type into JSON object.

Install

npm install --save @barajs/core @barajs/loader

Supported File Types

  • JSON
  • YAML
  • MD
  • INI
  • TOML

API

loadAsRaw

Load file as content with encoding support.

loadAsYaml

Load file as yaml.

loadAsYamlList

Load multiple files as yaml array.