Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

ienv

2.0.0 • Public • Published

Installation

$ yarn add ienv

Usage

import env, { isNode, isDev } from 'ienv'

Exports CONSTANTS

env: string

Get process.NODE_ENV default is development

isDev: boolean

process.NODE_ENV === 'development'

isProd: boolean

process.NODE_ENV === 'production'

isBrowser: boolean

Check if in browser

isNode: boolean

Check if in Node

Global

Returns window in browser, global in Node.

install

npm i ienv

Downloadsweekly downloads

540

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability