sspp

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: GPL-3.0

README

Structured Stream Processing and Presentation | sspp

What

sspp is a command-line tool is a parse and presentation utility for structured documents, i.e, json. Currently it only supports json.

Why

There is not good command line tool that works as an umbrella command to support multiple structured config / document.

Although currently this tool is an alternative to jq.

How

How to install
  1. Please install Golang
  2. You also need Git-scm
  3. Clone the repository
    git clone https://github.com/0hsn/sspp.git
    
  4. Change directory
    cd ./sspp
    
  5. Put on a path that's on your OS $PATH. On my case ~/.local/bin is on my $PATH
    go build -o ~/.local/bin/sspp ./src
    
Usage
$ curl -s https://httpbin.org/get | sspp --json='headers.Host'

# you can pass data directly with --data flag
$ sspp --json='data.email' --data='{"data": {"email": "sample@example.org"}}'

# It is possible to pass default data directly with --or flag
$ sspp --json='data.nonExistent' --data='{"data": {"email": "sample@example.org"}}' --or="nil"
$ curl -s https://httpbin.org/get | sspp --json='headers.nonExistent' --or="nil"
Report issue

You can report issues or ask questions on github issues.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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