# @briansolon/import-all

> Given the path to a directory containing ES6 modules, requires all of their default and named exports and returns them as an object

Latest version **2.0.0** (published 2018-12-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @briansolon/import-all
pnpm add @briansolon/import-all
yarn add @briansolon/import-all
bun add @briansolon/import-all
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2018-12-10 |
| First published | 2018-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Brian Solon |
| Maintainers | briansolon |

## Links

- npm: https://www.npmjs.com/package/@briansolon/import-all
- Repository: https://github.com/solon/import-all
- Homepage: https://github.com/solon/import-all#readme
- Issues: https://github.com/solon/import-all/issues
- npm.io page: https://npm.io/package/@briansolon/import-all

## Recent versions

- 2.0.0 (latest) — 2018-12-10
- 1.2.1 — 2018-12-10

## README

# import-all [![CircleCI](https://circleci.com/gh/solon/import-all.svg?style=shield)](https://circleci.com/gh/solon/import-all)

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

```shell
$ npm install --save @briansolon/import-all
```

## Usage

```javascript

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

## Credits

Uses code from [charlieschwabacher/import-all](https://github.com/charlieschwabacher/import-all) and [sindresorhus/import-modules](https://github.com/sindresorhus/import-modules).

---
_Source: https://npm.io/package/@briansolon/import-all · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
