# envok

> Use Joi validation to make sure your environment is OK

Latest version **1.0.5** (published 2024-03-11) · 0 weekly downloads

## Install

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

## 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.5 |
| Published | 2024-03-11 |
| First published | 2016-03-31 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=18.0.0 |
| Dependencies | 3 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mandarin Drummond |
| Maintainers | mandarind |
| Keywords | environment, validator |

## Links

- npm: https://www.npmjs.com/package/envok
- npm.io page: https://npm.io/package/envok

## Dependencies (3)

- [joi](https://npm.io/package/joi.md) ^17.12.2
- [camelize](https://npm.io/package/camelize.md) ^1.0.1
- [underscore](https://npm.io/package/underscore.md) ^1.13.6

## 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.5 (latest) — 2024-03-11
- 1.0.4 — 2023-09-19
- 1.0.3 — 2022-03-10
- 1.0.2 — 2018-12-06
- 1.0.1 — 2016-03-31
- 1.0.0 — 2016-03-31

## README

## envok

Use Joi to validate/assert your required environment

Usage:

```

var envok = require('envok');
var Joi = require('joi');

//Will make sure NODE_ENV is present...and any other Joi validation you use..
//Also will return an object with camelized keys for each key in the schema
const config = envok({
  NODE_ENV: Joi.string().required().allow('development', 'staging', 'production'),
})

module.exports = config;

```

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