# babel-plugin-transform-inline-env-vars

> Inline environment variables

Latest version **1.0.1** (published 2017-10-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-transform-inline-env-vars
pnpm add babel-plugin-transform-inline-env-vars
yarn add babel-plugin-transform-inline-env-vars
bun add babel-plugin-transform-inline-env-vars
```

## 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 | 1.0.1 |
| Published | 2017-10-17 |
| First published | 2017-10-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | bentatum |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-transform-inline-env-vars
- npm.io page: https://npm.io/package/babel-plugin-transform-inline-env-vars

## Recent versions

- 1.0.1 (latest) — 2017-10-17
- 1.0.0 — 2017-10-17

## README

# babel-plugin-transform-inline-env-vars

Inline environment variables

## Example

### In

```js
// assuming process.env.NODE_ENV is actually "development"
process.env.NODE_ENV;
```

### Out

```js
"development";
```

## Installation

```sh
npm install babel-plugin-transform-inline-env-vars
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
// without options
{
  "plugins": ["transform-inline-env-vars"]
}

// with options
{
  "plugins": [
    ["transform-inline-env-vars", {
      "include": [
        "NODE_ENV"
      ]
    }]
  ]
}
```

### Via CLI

```sh
babel --plugins transform-inline-env-vars script.js
```

### Via Node API

```javascript
require("babel-core").transform("code", {
  plugins: ["transform-inline-env-vars"]
});
```

## Options

+ `include` - array of environment variables to include
+ `exclude` - array of environment variables to exclude

---
_Source: https://npm.io/package/babel-plugin-transform-inline-env-vars · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
