# en

> Tiny environment helper

Latest version **1.0.1** (published 2015-03-31) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2015-03-31 |
| First published | 2013-09-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | William Kapke |
| Maintainers | williamkapke |
| Keywords | env, environment |

## Links

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

## 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.1 (latest) — 2015-03-31
- 1.0.0 — 2013-09-09

## README

env
===

Creates a global `env` function object. Just to be terse.

```javascript
require("en");

console.log(env.development);
//true
console.log(env.production);
//undefined

console.log(env('development'));
//true

console.log(env('Your env is: ' + env));
//Your env is: development

```


To set the current `env`, use the standard `NODE_ENV` environment variable.

```
$ NODE_ENV=production node app.js
```


License
=======
MIT

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