Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib/utils/env

Index

Variables

Variables

Const read

read: EnvReader = ...

Environment read method, supports:

  • normal string reads with default values
  • strict reads with process termination
  • boolean reads
  • number reads

e.g

 read('NODE_ENV', 'development')
 read.strict('GITHUB_TOKEN')
 read.number('PORT', 8000)
 read.bool('IS_TRUE')
 read.number.strict('NUM')

Generated using TypeDoc