# dev-or-fail

> CLI utility that fails if NODE_ENV is not set to "development"

Latest version **1.0.0** (published 2016-03-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install dev-or-fail
pnpm add dev-or-fail
yarn add dev-or-fail
bun add dev-or-fail
```

Provides the command `dev-or-fail`.

## 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 | 2016-03-20 |
| First published | 2016-03-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matteo Capucci |
| Maintainers | mattecapu |
| Keywords | node_env, environment, cli, utility |

## Links

- npm: https://www.npmjs.com/package/dev-or-fail
- Repository: https://github.com/mattecapu/dev-or-fail
- Homepage: https://github.com/mattecapu/dev-or-fail#readme
- Issues: https://github.com/mattecapu/dev-or-fail/issues
- npm.io page: https://npm.io/package/dev-or-fail

## Dependencies (1)

- [colors](https://npm.io/package/colors.md) ^1.1.2

## 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) — 2016-03-20
- 0.1.0 — 2016-03-20
- 0.0.1 — 2016-03-19

## README

# dev-or-fail
CLI utility that fails if NODE_ENV is not set to "development".

## Installation
```bash
npm i dev-or-fail -S
```
## Usage
Use it to prevent a script from being executed in production, like
```json
"scripts": {
    "clean": "dev-or-fail && do_the_cleaning || echo \"Can't do this in production\"",
    "truncate_tables": "dev-or-fail && trunc_tab || echo \"Can't do this in production\""
}
```

## License
MIT

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