Check the environment type: test, debug, development, production.
npm install @intactile/node-env
Use the process.env node object.
Set the environement type :
- process.env.NODE_ENV = ['test' | 'development' | 'production']
- process.env.DEBUG = ['true' | 'false']
And ckeck the enviroment type with one of : isTest(), isDebug(), isDev(), isProd()