Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/caviarjs/sandbox-env-plugin

Caviar plugin to allow the sanbox to inherit extra environment variables from the current process
https://github.com/caviarjs/sandbox-env-plugin

caviar caviar-plugin

Last synced: 4 days ago
JSON representation

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

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/caviarjs/sandbox-env-plugin.svg?branch=master)](https://travis-ci.org/caviarjs/sandbox-env-plugin)
[![Coverage](https://codecov.io/gh/caviarjs/sandbox-env-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/caviarjs/sandbox-env-plugin)

# @caviar/sandbox-env-plugin

[Caviar](https://github.com/caviarjs/caviar) plugin to allow the sanbox to inherit extra environment variables from the current process

## Install

```sh
$ npm i @caviar/sandbox-env-plugin
```

## Usage

```js
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