@caviar/sandbox-env-plugin

caviar plugin to allow the sanbox to inherit extra environment variables from the current process

Usage no npm install needed!

<script type="module">
  import caviarSandboxEnvPlugin from 'https://cdn.skypack.dev/@caviar/sandbox-env-plugin';
</script>

README

Build Status Coverage

@caviar/sandbox-env-plugin

Caviar plugin to allow the sanbox to inherit extra environment variables from the current process

Install

$ npm i @caviar/sandbox-env-plugin

Usage

const EnvPlugin = require('@caviar/sandbox-env-plugin')

module.exports = {
  caviar: {
    plugins: [
      // Allow sandbox to inherit `process.env.REDIS_HOST` of the parent process.
      new EnvPlugin(['REDIS_HOST'])
    ]
  }
}

License

MIT