# @b12k/wenv

> Checks environment variables and exits, that's it...

Latest version **0.1.0** (published 2023-05-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @b12k/wenv
pnpm add @b12k/wenv
yarn add @b12k/wenv
bun add @b12k/wenv
```

Provides the command `wenv`.

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2023-05-27 |
| First published | 2023-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bogdan Kolesnyk |
| Maintainers | b12k |

## Links

- npm: https://www.npmjs.com/package/@b12k/wenv
- Repository: https://github.com/b12k/wenv
- Issues: https://github.com/b12k/wenv/issues
- npm.io page: https://npm.io/package/@b12k/wenv

## Dependencies (1)

- [commander](https://npm.io/package/commander.md) 10.0.1

## Recent versions

- 0.1.0 (latest) — 2023-05-27
- 0.0.1 — 2023-05-27

## README

# **<div align="center">WENV</div>**

A stupid simple utility that checks environment variables and exists...

## Install

```shell
# NPM
npm i wenv
# Yarn
yarn add wenv
# PNPM
pnpm i wenv
```

## Use

```shell
wenv
```

## Example

```shell
# install globally to use it as shell command

npm i @b12k/wenv -g

export ENV_VAR=banana
export ANOTHER_ENV_VAR=apple

wenv ENV_VAR=banana ANOTHER_ENV_VAR=apple && echo "✅ - bananas and apples"
wenv ENV_VAR!=banana ANOTHER_ENV_VAR!=orange && echo "❌ - this will not be echoed"

# -f - "Success Fail" mode. To prevent erroring on failed condition
wenv ENV_VAR!=grape ANOTHER_ENV_VAR!=peach -f || echo "✅ - Successfully failed: no grapes and no peaches"
wenv ENV_VAR=grape ANOTHER_ENV_VAR=peach -f || echo "❌ - this will not be echoed"
```

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