项目作者: andrewp-as-is

项目描述 :
:key: .env -> .env.json
高级语言: Python
项目地址: git://github.com/andrewp-as-is/env2json.py.git
创建时间: 2019-07-06T16:40:18Z
项目社区:https://github.com/andrewp-as-is/env2json.py

开源协议:The Unlicense

下载


!-- https://readme42.com --



Installation

  1. $ [sudo] pip install env2json

Examples

.env.dev

  1. DB_NAME=name
  2. DB_USER=username
  3. DB_HOST=127.0.0.1
  4. DB_PORT=5432
  1. $ python -m env2json .env.dev > .env.dev.json

.env.dev.json

  1. {
  2. "DB_HOST": "127.0.0.1",
  3. "DB_NAME": "name",
  4. "DB_PORT": "5432",
  5. "DB_USER": "username"
  6. }


readme42.com