Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/techjacker/envtojson
Write shell environment variables to a file in JSON format
https://github.com/techjacker/envtojson
Last synced: 12 days ago
JSON representation
Write shell environment variables to a file in JSON format
- Host: GitHub
- URL: https://github.com/techjacker/envtojson
- Owner: techjacker
- License: mit
- Created: 2016-05-15T14:16:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-21T12:22:02.000Z (about 8 years ago)
- Last Synced: 2025-01-17T09:42:25.649Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# envtojson
- write shell environment variables to a file in JSON format
- python 3+## Installation
```Shell
pip install envtojson
```## Usage
```Shell
$ envtojson -h
usage: envtojson [-h] [-q] filename vars [vars ...]Write shell environment variables to a file in JSON.
positional arguments:
filename file to write to
varsoptional arguments:
-h, --help show this help message and exit
-q, --quiet
```## Example
```Shell
$ envtojson envs.json COLORTERM XAUTHORITY
```
Contents of envs.json:
```JSON
{"XAUTHORITY": "/home/me/.Xauthority", "COLORTERM": "gnome-terminal"}
```