Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/eins78/json-to-shell-as-a-service
- Owner: eins78
- Created: 2014-02-23T23:12:30.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-24T00:05:22.000Z (almost 11 years ago)
- Last Synced: 2024-04-15T03:00:42.209Z (9 months ago)
- Language: JavaScript
- Homepage: http://json2shell.ars.is/get?url=http://api.openweathermap.org/data/2.5/weather?q=Weimar,Germany
- Size: 125 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.