Read data from json and yaml files recursively
npm install data-dir
// or
yarn add data-dir
For each file the filename becomes the key and data from file becomes value.
const dataDir = require('data-dir')
let obj = dataDir('dir-with-nested-yaml-json') // returns combined data