8000 GitHub - jnyryan/envarizer: takes bash shell export commands and turns them into a json object
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jnyryan/envarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

envarizer

build-status Known Vulnerabilities

Takes a bash shell export command and turns it into a json object

Why you ask? I found myself doing it more than once by hand.

Prerequisite

This is a Node.js package so needs node.js runtime.

Installation

This package is published on npmjs.com

npm install envarizer

Usage

envarizer ./test/test-file.sh

example input

#!/usr/bin/env bash
export ENV_VAR_A=/var/log
export ENV_VAR_B=a string
export ENV_VAR_C=john.smyth@example.com

example output

[ ENV_VAR_A: '/var/log',
  ENV_VAR_B: 'a string',
  ENV_VAR_C: 'john.smyth@example.com' ]

About

takes bash shell export commands and turns them into a json object

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0