1.0.1 • Published 8 years ago
import-all v1.0.1
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`);