/simple-require-context

Similar as require.context...

Primary LanguageJavaScript

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))
})