mscno / ejson2kv

ejson2kv is a small utility tool that converts output from ejson decrypt to a list of KV pairs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ejson2kv

Ejson2kv is a simple tool to convert ejson files to key-value pairs.

Installation

go install github.com/mscno/ejson2kv@latest

Usage

ejson decrypt secrets.ejson | ejson2kv

will tranform the ejson file to key-value pairs.

Example

$ cat secrets.ejson
{
    "_public_key": "kP1YIjY...",
    "password": "password",
    "username": "username"
    
}

$ ejson decrypt secrets.ejson | ejson2kv
password=password
username=username

About

ejson2kv is a small utility tool that converts output from ejson decrypt to a list of KV pairs


Languages

Language:Go 100.0%