import-all
v1.0.1
Published
given the path to a directory containing es6 modules, requires all of their default exports and returns them as an array
Downloads
29
Readme
import-all
given the path to a directory containing javascript files, returns an array of all of their default exports
import importAll from 'import-all';
const imports = importAll(`${__dirname}/directory`);