AndersDJohnson / AndersDJohnson/dotenv-export
Should not overwrite already defined variables
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 10
- Fork
- 3
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
The [dotenv](https://www.npmjs.com/package/dotenv) module does not overwrite already defined environment variables. Should this module not behave the same?
This could be done by using the [dotenv](https://www.npmjs.com/package/dotenv)
```js
const dotenv = require('dotenv')
const names = Object.keys(dotenv.load().parsed);
console.log(names.map((name) => { return `export ${name}=${process.env[name]};`}).join("\n"));
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.