Tabnine Logo For Javascript
1/process.ProcessEnv
Code IndexAdd Tabnine to your IDE (free)

How to use
ProcessEnv
function
in
1/process

Best JavaScript code snippets using ts3.1/process.ProcessEnv(Showing top 1 results out of 1,395)

origin: chrisleekr/nodejs-vuejs-mysql-boilerplate

constructor() {
  this.moduleLogger = logger.child({ module: 'mail' });

  this.transportConfig = {
   host: process.env.SMTP_HOST,
   port: process.env.SMTP_PORT,
   secure: process.env.SMTP_SECURE === 'true'
  };

  if (process.env.SMTP_SECURE === 'true') {
   this.transportConfig.auth.user = process.env.SMTP_AUTH_USER;
   this.transportConfig.auth.pass = process.env.SMTP_AUTH_PASS;
  }

  if (process.env.SMTP_DEBUG === 'true') {
   this.transportConfig.debug = true;
  }
  if (process.env.SMTP_LOGGER === 'true') {
   this.transportConfig.logger = true;
  }

  this.transporter = nodemailer.createTransport(this.transportConfig);

  this.moduleLogger.debug({ transportConfig: this.transportConfig }, 'mail class initialized');
 }
ts3(npm)1/processProcessEnv

Most used ts3 functions

  • Process.env
  • Process.exit
  • ProcessEnv.NODE_ENV
  • Process.on
  • Process.cwd
  • Process.stdout,
  • Process.argv,
  • ProcessEnv.PORT,
  • ProcessEnv.HTTPS,
  • ProcessEnv.NODE_PATH,
  • Process.platform,
  • Process.nextTick,
  • ProcessEnv.CI,
  • Process.stdin,
  • Process.stderr,
  • Process.pid,
  • Process.send,
  • Process.version,
  • Process.versions

Popular in JavaScript

  • yargs
    yargs the modern, pirate-themed, successor to optimist.
  • handlebars
    Handlebars provides the power necessary to let you build semantic templates effectively with no frustration
  • glob
    a little globber
  • through2
    A tiny wrapper around Node.js streams.Transform (Streams2/3) to avoid explicit subclassing noise
  • body-parser
    Node.js body parsing middleware
  • fs
  • winston
    A logger for just about everything.
  • redis
    Redis client library
  • superagent
    elegant & feature rich browser / node HTTP with a fluent API
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now