flex-plugins-utils-env
TypeScript icon, indicating that this package has built-in type declarations

4.3.4 • Public • Published

npm npm NpmLicense

Flex Plugin Utils env

Utility for returning environment variables. It is an isomorphic JavaScript module.

Methods

isWin32

Returns true if OS is Windows. It will return false if script is running on the browser.

persistTerminal

If the module is used on the server, it will set the environment variable to persist the terminal logs.

isTerminalPersisted

Whether the terminal should be persisted or not. Only works on the server.

isQuiet

Whether the scripts should be quiet (no logs). Only works on the server.

isDebug

Returns true if the log level is debug. Works on both the browser and the server.

isTrace

Returns true if the log level is trace. Works on both the browser and the server.

getRegion

Returns the region. Will use the process env if running on the server, otherwise uses the windows.location.

isCI

Returns true if script running in CI. Works on the server only.

Dependents (5)

Package Sidebar

Install

npm i flex-plugins-utils-env

Weekly Downloads

7,450

Version

4.3.4

License

MIT

Unpacked Size

29.9 kB

Total Files

9

Last publish

Collaborators

  • flex-runtime
  • ktalebian
  • theryankennedy
  • ahcai
  • twilio-labs-ci
  • krishnakalluri
  • alvarezcindy
  • agupt