# consistent-env

> A reliable way to get env

Latest version **1.3.1** (published 2017-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install consistent-env
pnpm add consistent-env
yarn add consistent-env
bun add consistent-env
```

## 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.3.1 |
| Published | 2017-05-28 |
| First published | 2016-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | steelbrain |
| Maintainers | steelbrain |
| Keywords | environment, env |

## Links

- npm: https://www.npmjs.com/package/consistent-env
- Repository: https://github.com/steelbrain/consistent-env
- Issues: https://github.com/steelbrain/consistent-env/issues
- npm.io page: https://npm.io/package/consistent-env

## Dependencies (1)

- [lodash.uniq](https://npm.io/package/lodash.uniq.md) ^4.5.0

## 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.3.1 (latest) — 2017-05-28
- 1.3.0 — 2016-08-27
- 1.2.0 — 2016-06-07
- 1.1.2 — 2016-03-06
- 1.1.1 — 2016-03-03
- 1.1.0 — 2016-02-27
- 1.0.1 — 2016-02-22
- 1.0.0 — 2016-02-20

## README

# Consistent-Env

[![Greenkeeper badge](https://badges.greenkeeper.io/steelbrain/consistent-env.svg)](https://greenkeeper.io/)

`consistent-env` is an npm module that gives you the correct ENV, consistently. It's especially useful for OSX GUI apps, because due to an OS limitation they are not given proper env variables. This package also caches the result which results in a performance boost when a lot of packages are relying on it, it also doesn't modify the globals so using it in dependencies is safe.

## Installation

```
npm install --save consistent-env
```

## API

```
module.exports = function(): Object<string, string>
module.exports.async = function(): Promise<Object<string, string>>
```

## FAQ

#### Unable to determine environment

If you are on OSX and using the System Default ZSH, It has a bug that causes it to live forever, thus triggering timeout
for `consistent-env`, to fix it you should install `zsh` using homebrew, we recommend [Rick's Guide](http://rick.cogley.info/post/use-homebrew-zsh-instead-of-the-osx-default/).

## License

This project is licensed under the terms of MIT License, see the LICENSE file for more info

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