Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/caviarjs/sandbox-env-plugin
- Owner: caviarjs
- License: other
- Created: 2019-04-05T13:53:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-05T06:41:41.000Z (about 5 years ago)
- Last Synced: 2024-11-07T01:16:41.414Z (8 days ago)
- Topics: caviar, caviar-plugin
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE
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