@fvilers/is-prod
v2.0.0
Published
An helper method that returns true if the process use the production environment
Downloads
1
Maintainers
Readme
@fvilers/is-prod
An helper method that returns true if the process use the production environment
Installation
npm install @fvilers/is-prod
or
yarn add @fvilers/is-prod
ECMAScript module
Starting with version 2.0.0, this library will be published as an ECMAScript module.
Usage
import isProd from "@fvilers/is-prod";
console.log(isProd());
It will output (if the NODE
environment variable is set to production
):
true