Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/eins78/json-to-shell-as-a-service

JSON to shell variables web service
https://github.com/eins78/json-to-shell-as-a-service

Last synced: about 1 month ago
JSON representation

JSON to shell variables web service

Awesome Lists containing this project

README

        

# `json-to-shell-as-a-service`

A small web service converting `JSON` to `shell` variables.

## API

### `get`

Get a resource from http and convert it.

Example:
`curl http://json2shell.ars.is/get?url=http://api.maschinenraum.tk/api/v0_12/status.json`

```shell
curl http://json2shell.ars.is/get?url=http://api.openweathermap.org/data/2.5/weather?q=Weimar,Germany > /tmp/weather \
&& source /tmp/weather && say $weather__0__description
```

## Kudos

This is more or less a wrapper around the [bash-vars](https://www.npmjs.org/package/bash-vars) module by @dominictarr.