yaml-or-json
Requires a yaml or json config file depending on what it finds.
Installation
npm install --save yaml-or-json
Usage
var yamlOrJSON = ; var config = ;console;
This will read and parse my-config.yaml
or my-config.yml
or my-config.json
from the config
directory, depending which file will be there.
JSON5 is supported!
JSON files are parsed by JSON5 parser.
License
The MIT License (MIT)