@caviar/plugin-sandbox-envdeprecated

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

Usage no npm install needed!

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

README

Build Status Coverage

@caviar/plugin-sandbox-env

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

Install

$ npm i @caviar/plugin-sandbox-env

Usage

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

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

License

MIT