# babel-config-installer.js

> Install all packages referenced in presets and plugins from babel.config.js

Latest version **2.1.3** (published 2019-10-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-config-installer.js
pnpm add babel-config-installer.js
yarn add babel-config-installer.js
bun add babel-config-installer.js
```

## 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.1.3 |
| Published | 2019-10-01 |
| First published | 2019-09-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | gtzilla |
| Maintainers | gregory80 |

## Links

- npm: https://www.npmjs.com/package/babel-config-installer.js
- Repository: https://github.com/gtzilla/babel-config-installer.js
- Homepage: https://github.com/gtzilla/babel-config-installer.js#readme
- Issues: https://github.com/gtzilla/babel-config-installer.js/issues
- npm.io page: https://npm.io/package/babel-config-installer.js

## Dependencies (2)

- [shelljs](https://npm.io/package/shelljs.md) ^0.8.3
- [underscore](https://npm.io/package/underscore.md) ^1.9.1

## Recent versions

- 2.1.3 (latest) — 2019-10-01
- 2.1.2 — 2019-10-01
- 2.0.1 — 2019-10-01
- 1.0.1 — 2019-09-30

## README

# babel-config-installer.js

Stop typing `yarn install @babel...`. Leverage the most recent `babel.config.js` that you've already authored on a separate project. Absurdly convenient convenience method. `node babel-config-installer.js`

## Usage, Happy Path

```sh
node babel-config-installer.js
```

## Using babel-config-installer.js, yarn

Change to project directory.

```sh
yarn add babel-config-installer.js
node node_modules/babel-config-installer.js/babel-config-installer.js
```

## Using Existing babel-config-installer.js, yarn

Change directory to the local working directory for this project. Then:

```sh
yarn link
```

Now change directory, `cd`, to your project that needs to use the local `babel-config-installer.js` install and  run:

```sh
	yarn link babel-config-installer.js
```

### Using with Non Traditional babel.config.js locations

The below examples are equivalent. babel-config-installer.js will install `plugins` and `presets` listed in `test-data/babel.config.js` even if you omit the config filename. Convenient!

```sh
	node babel-config-installer.js  test-data
```

```sh
	node babel-config-installer.js  .././test-data
```

```sh
	node babel-config-installer.js  test-data/babel.config.js
```

```sh
cd test-data
node ../babel-config-installer.js
```


### Usage: Use by Copying Example

1. Copy your babel.config.js into project root directory
2. Copy babel-config-installer.js into project root
3. Execute babel-config-installer.js

```sh
	node babel-config-installer.js
```

This script will install all position index 0 of all packages listed, in Array, under both presets and plugins from `babel.config.js`. See `test-data/babel.config.js`


### Bugs, Improvements

Post an issue or send an email. Don't bother with carrier pigeons or messages in bottles. 


#### Developing, Development, Working on project files

There is a TODO list. Email if you're looking to generally assist. If you're on a mission, send well tested patches through Github Pull Request system.


### Future

If there is any interest or practical need to add additional command line configurations or to allow importing some or parts of the tech employed, it's a worthy pursuit.

---
_Source: https://npm.io/package/babel-config-installer.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
