env-strip-2020.7.1
توضیحات
strip comments, blank lines and double quotes from env file
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | env-strip-2020.7.1 |
| نام | env-strip |
| نسخه کتابخانه | 2020.7.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/andrewp-as-is/env-strip |
| آدرس اینترنتی | https://pypi.org/project/env-strip/ |
| مجوز | Unlicense |
<!--
https://readme42.com
-->
[]()
[](https://pypi.org/project/env-strip/)
[](https://unlicense.org/)
### Installation
```bash
$ [sudo] pip install env-strip
```
```bash
$ [sudo] npm i -g env-strip
```
#### Pros
+ Docker compatible environment file without comments, blank lines and double quotes
#### Examples
`.env`
```bash
SECRET_KEY="https://www.youtube.com/channel/UCTZUTvv_1Onm-f-533Hyurw"
# postgres settings:
DB_NAME="name" # comment
DB_USER="postgres" # comment
DB_HOST="127.0.0.1" # comment
DB_PORT=5432 # comment
```
```bash
$ env-strip .env
SECRET_KEY=https://www.youtube.com/channel/UCTZUTvv_1Onm-f-533Hyurw
DB_NAME=name
DB_USER=postgres
DB_HOST=127.0.0.1
DB_PORT=5432
```
stdin
```bash
$ find . \( -name .env.base -o -name ".env.prod.*" \) -exec cat {} \; | env-strip - > .env.prod
```
<p align="center">
<a href="https://readme42.com/">readme42.com</a>
</p>
نحوه نصب
نصب پکیج whl env-strip-2020.7.1:
pip install env-strip-2020.7.1.whl
نصب پکیج tar.gz env-strip-2020.7.1:
pip install env-strip-2020.7.1.tar.gz