@barajs/loader
v1.0.0
Published
Bara file loader
Downloads
10
Readme
Bara file loader
Easily load supported file type into JSON object.
Install
npm install --save @barajs/core @barajs/loader
Supported File Types
- [x] JSON
- [x] 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.