# expandenv

> Expand $ENVIRONMENT_VARIABLES in a string

Latest version **1.0.0** (published 2014-04-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install expandenv
pnpm add expandenv
yarn add expandenv
bun add expandenv
```

## 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.0 |
| Published | 2014-04-22 |
| First published | 2014-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | taterbase |
| Maintainers | taterbase |
| Keywords | expand, environment, env, variables |

## Links

- npm: https://www.npmjs.com/package/expandenv
- Repository: https://github.com/taterbase/node-expandenv
- Issues: https://github.com/taterbase/node-expandenv/issues
- npm.io page: https://npm.io/package/expandenv

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2014-04-22

## README

#expandenv

*Environment Variable injection for your strings*

##Installation

`npm install --save expandenv`

##Usage

Expandenv takes a string and injects the environment variable for each `$KEYWORD` it finds. If none is available it will leave the `$KEYWORD`. It also allows you to pass in a hash that will override the `process.env` variables you specify.

```javascript
var expandenv = require('expandenv')
  , dir = expandenv("$PWD") // "/the/current/directory/"
  , example = expandenv("Hi $PARENT how are you?", {PARENT: 'Mom'}) // "Hi Mom how are you?"
```

___

Made with ⚡️ by [@taterbase](https://twitter.com/taterbase)

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