node-require-context
same as
webpack
=>require.context
Usage
npm i --save node-require-context
Example
const requireContext = const context = context
API
requireContext ( directory, useSubdirectories, regExp )
directory
search dir default '.'
useSubdirectories
true
will search all child file ;false
only search current dir ; defaulttrue
regExp
RegExp match ; default
/(?:)/