How to use cross-env - 1 common examples

To help you get started, we’ve selected a few cross-env examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sebastian-software / universal-dotenv / src / unienv.ts View on Github external
const args = getParameter()
  if (args.context) {
    process.env.ENV_CONTEXT = args.context
  }

  if (args.verbose) {
    process.stderr.write("Load .env files...\n")
  }

  init()

  if (args.verbose) {
    process.stderr.write(`Execute "${args.command.join(" ")}"...\n`)
  }

  crossEnv(args.command)
}

cross-env

Run scripts that set and use environment variables across platforms

MIT
Latest version published 4 years ago

Package Health Score

63 / 100
Full package analysis

Popular cross-env functions