Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/svenfuchs/sh_vars

Shell variable parser
https://github.com/svenfuchs/sh_vars

bash parser ruby shell variables

Last synced: about 2 months ago
JSON representation

Shell variable parser

Awesome Lists containing this project

README

        

# ShVars [![Build Status](https://travis-ci.org/svenfuchs/cl.svg?branch=master)](https://travis-ci.org/svenfuchs/cl) [![Code Climate](https://api.codeclimate.com/v1/badges/2c2c23d7103d193e72a2/maintainability)](https://codeclimate.com/github/svenfuchs/sh_vars)

A library for parsing shell environment variables.

## Installation

```
gem install sh_vars
```

## Usage

```
require 'sh_vars'

ShVars.parse('FOO=foo BAR="bar"')
# => [['FOO', foo], ['BAR', '"bar"']]
```