envarizer
takes a bash shell export command and turns it into a json object
Last updated 4 years ago by jnyryan .
ISC · Original npm · Tarball · package.json
$ cnpm install envarizer 
SYNC missed versions from official npm registry.

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' ]

Current Tags

  • 0.0.5                                ...           latest (4 years ago)

4 Versions

  • 0.0.5                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |