require-context-read
v1.2.3
Published
## install
Downloads
7
Readme
require-context-read
install
npm i -s require-context-read
# or
yarn add require-context-read
import
import read from "require-context-read";
use
// get modules with the built-in name
const modules = read(require.context(`./components`, false, /\.vue$/));
// get modules without the file-name
const modules = read(require.context(`./utils`, false, /\.js$/), true);