Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 960 Bytes

Readme.md

File metadata and controls

55 lines (40 loc) · 960 Bytes

ppjson - please print json

small cli tool to print json file objects

Usage

$ ppjson --help
USAGE:
    ppjson [OPTIONS] [--] [ARGS]

ARGS:
    <INPUT_JSON_FILE>    a json file
    <KEY>                key

OPTIONS:
    -d, --delimeter <DELIMETER>    set key delimeter
    -h, --help                     Print help information
    -k                             print keys
    -t                             format as table
    -V, --version                  Print version information

Example

$ ppjson package.json scripts
{
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  }
}

Stack

  • Rust
  • tabled for table formatting

Build and Install

make build
make install # sudo if linux

You can add the following to .zshrc or .bashrc to print scripts be deafult for command pp

alias pp="ppjson package.json scripts"