1.0.2 • Published 5 years ago

@cladeco/import-all v1.0.2

Weekly downloads
169
License
MIT
Repository
github
Last release
5 years ago

import-all CircleCI

Given the path to a directory containing JavaScript files, returns an object containing all of their default and named exports with the module names as keys.

Installation

$ npm install --save @cladeco/import-all

Usage

import importAll from 'import-all'
const imports = importAll(`${__dirname}/directory`)

Credits

Uses code from charlieschwabacher/import-all and sindresorhus/import-modules.