# @chatopera/dotenv

> Expand environment variables using dotenv

Latest version **5.1.1** (published 2020-09-18) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install @chatopera/dotenv
pnpm add @chatopera/dotenv
yarn add @chatopera/dotenv
bun add @chatopera/dotenv
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.1.1 |
| Published | 2020-09-18 |
| First published | 2020-09-18 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Scott Motte |
| Maintainers | chatopera |
| Keywords | dotenv, expand, variables |

## Links

- npm: https://www.npmjs.com/package/@chatopera/dotenv
- Repository: https://github.com/samurais/dotenv-expand
- Homepage: https://github.com/samurais/dotenv-expand#readme
- Issues: https://github.com/samurais/dotenv-expand/issues
- npm.io page: https://npm.io/package/@chatopera/dotenv

## Dependencies (1)

- [dotenv](https://npm.io/package/dotenv.md) ^4.0.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 5.1.1 (latest) — 2020-09-18
- 5.1.0 — 2020-09-18

## README

# dotenv-expand

<img src="https://raw.githubusercontent.com/motdotla/dotenv-expand/master/dotenv-expand.png" alt="dotenv-expand" align="right" />

Dotenv-expand adds variable expansion on top of 
[dotenv](http://github.com/motdotla/dotenv). If you find yourself needing to
expand environment variables already existing on your machine, then
dotenv-expand is your tool.

[![BuildStatus](https://img.shields.io/travis/motdotla/dotenv-expand/master.svg?style=flat-square)](https://travis-ci.org/motdotla/dotenv-expand)
[![NPM version](https://img.shields.io/npm/v/dotenv-expand.svg?style=flat-square)](https://www.npmjs.com/package/dotenv-expand)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)

## Install

```bash
npm install @chatopera/dotenv --save
```

## Usage

Define vars in .env

```
OTHER_ENV=foo
YOUR_ENV_VAR=$OTHER_ENV/bar
```

As early as possible in your application, require dotenv and dotenv-expand, and
wrap dotenv expand around dotenv.

```js
require('@chatopera/dotenv').config(process.cwd() + '/.env')
process.env["YOUR_ENV_VAR"]
```

See [test/.env](./test/.env) for examples of variable expansion in your `.env`
file.

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