@briansolon/import-all

2.0.0 • Public • Published

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 @briansolon/import-all

Usage

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

Credits

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

Readme

Keywords

none

Package Sidebar

Install

npm i @briansolon/import-all

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

11.6 kB

Total Files

14

Last publish

Collaborators

  • briansolon