# @alloc/is-dev

> Check for development and test environments.

Latest version **1.3.1** (published 2021-10-18) · 0 weekly downloads

## Install

```sh
npm install @alloc/is-dev
pnpm add @alloc/is-dev
yarn add @alloc/is-dev
bun add @alloc/is-dev
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2021-10-18 |
| First published | 2019-11-01 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | aleclarson |

## Links

- npm: https://www.npmjs.com/package/@alloc/is-dev
- Repository: https://github.com/alloc/is-dev
- Homepage: https://github.com/alloc/is-dev#readme
- Issues: https://github.com/alloc/is-dev/issues
- npm.io page: https://npm.io/package/@alloc/is-dev

## Recent versions

- 1.3.1 (latest) — 2021-10-18
- 1.3.0 — 2021-10-14
- 1.2.2 — 2020-08-07
- 1.2.1 — 2020-08-07
- 1.2.0 — 2019-11-18
- 1.1.0 — 2019-11-01
- 1.0.0 — 2019-11-01

## README

# @alloc/is-dev

Check for development and test environments.

Compatible with browsers, Node, Vite, and React Native.

Dissolves when bundled.

```ts
import { isDev, isTest } from '@alloc/is-dev'

if (isDev) {
  // Do something during development only.
}

if (isTest) {
  // Do something during automated tests only.
}
```

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