Skip to content
/ ppjson Public

small cli tool to print json file objects by key

Notifications You must be signed in to change notification settings

j0no/ppjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

small cli tool to print json file objects by key

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published