1.3.1 • Published 4 years ago

@alloc/is-dev v1.3.1

Weekly downloads
7
License
-
Repository
github
Last release
4 years ago

@alloc/is-dev

Check for development and test environments.

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

Dissolves when bundled.

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

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

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

4 years ago

1.3.0

4 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago