json_env

command module
v0.0.0-...-567b0ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2015 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

JSONenv

Build Status

Instalation

go install https://github.com/assemblyline/json_env

Usage

JSONenv writes to stdout so its output can be redirected to a file or somesuch.

$ env
SHELL=/bin/bash
EDITOR=vim
TERM=xterm
HOME=/Users/ed
GOPATH=/Users/ed/go
FOO=fooming_at_the_mouth
BAR=bar_snacks

$ json_env -f json -v BAR -v FOO
{"BAR":"bar_snacks","FOO":"fooming_at_the_mouth"}

$ json_env -f js -v EDITOR
window.ENV = {"EDITOR":"vim"};

$ json_env -f js -e SHELL -e EDITOR -e TERM -e HOME -e GOPATH
window.ENV = {"FOO":"fooming_at_the_mouth","BAR":"bar_snacks"};

Licence

MIT see LICENCE

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址