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 2 results out of 1,395)

origin: cube-js/cube.js

constructor(options) {
  options = options || {};
  const defaultMin = process.env.CUBEJS_REDIS_POOL_MIN ? parseInt(process.env.CUBEJS_REDIS_POOL_MIN, 10) : 2;
  const defaultMax = process.env.CUBEJS_REDIS_POOL_MAX ? parseInt(process.env.CUBEJS_REDIS_POOL_MAX, 10) : 1000;
  const min = (typeof options.poolMin !== 'undefined') ? options.poolMin : defaultMin;
  const max = (typeof options.poolMax !== 'undefined') ? options.poolMax : defaultMax;
  const create = options.createClient || (() => createRedisClient(process.env.REDIS_URL));
  const destroy = options.destroyClient || (client => client.end(true));
  const opts = {
   min,
   max,
   acquireTimeoutMillis: 5000,
   idleTimeoutMillis: 5000,
   evictionRunIntervalMillis: 5000
  };
  if (max > 0) {
   this.pool = genericPool.createPool({ create, destroy }, opts);
  } else {
   // fallback to un-pooled behavior if pool max is 0
   this.create = create;
  }
 }
origin: cube-js/cube.js

const { externalDriverFactory } = options;
const cacheAndQueueDriver = options.cacheAndQueueDriver || process.env.CUBEJS_CACHE_AND_QUEUE_DRIVER || (
 process.env.NODE_ENV === 'production' || process.env.REDIS_URL ? 'redis' : 'memory'
);
if (cacheAndQueueDriver !== 'redis' && cacheAndQueueDriver !== 'memory') {
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

  • qs
    A querystring parser that supports nesting and arrays, with a depth limit
  • axios
    Promise based HTTP client for the browser and node.js
  • http
  • q
    A library for promises (CommonJS/Promises/A,B,D)
  • mime-types
    The ultimate javascript content-type utility.
  • moment
    Parse, validate, manipulate, and display dates
  • minimist
    parse argument options
  • debug
    small debugging utility
  • body-parser
    Node.js body parsing middleware
  • Best IntelliJ plugins
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