Based on node.js automation module introduction
const requireContext = require('simple-require-context')
const context = requireContext('./', false, /\.js$/)
console.log(context.keys())
context.keys().forEach(m => {
console.log(context(m))
})
const requireContext = require('simple-require-context')
const context = requireContext('./', false, /\.js$/)
console.log(context.keys())
context.keys().forEach(m => {
console.log(context(m))
})