2.0.0 • Published 10 months ago

@fvilers/is-prod v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@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
2.0.0

10 months ago

1.0.1

3 years ago

1.0.0

3 years ago