1.3.1 • Published 3 years ago
@alloc/is-dev v1.3.1
@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.
}