node-file-loader
Installation
npm install node-file-loader --save
Usage
To use the loader, first require it:
var Loader = require('node-file-loader');
Methods
load(filePath)
Load file (UTF-8). Returns a promise object containing the file.
Loader;
yaml(filePath)
Load YAML file into a Javascript object. Returns a promise object containing the object.
Loader;
json(filePath)
Load JSON file into a Javascript object. Returns a promise object containing the object.
Loader;