Skip to content

Latest commit

History

History
48 lines (29 loc) 路 936 Bytes

README.md

File metadata and controls

48 lines (29 loc) 路 936 Bytes

Terminal JOSN Data Formatting & Highlighting

cmd-json

# node
npm install -g fx

Usage

# .zshrc
. ~/your_path/cmd-json.sh

# example
jf https://api.github.com/users/octocat/received_events

jf https://api.github.com/users/octocat/received_events "x=>x[0].actor"

jf -f ./<your_path>/<file_name>.json

jf -f ./<your_path>/<file_name>.json "name"
  • jf -f ./test/data.json

jf_local_data

  • jf -f ./test/data.json "name"

jf_local_data-key

  • jf https://api.github.com/users/octocat/received_events

jf_url_data

  • jf https://api.github.com/users/octocat/received_events "x=>x[0].actor"

jf_url_data-fn

Related