@barajs/loader

Bara file loader

Usage no npm install needed!

<script type="module">
  import barajsLoader from 'https://cdn.skypack.dev/@barajs/loader';
</script>

README

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.