Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bin] Improve prettyjson helper script #18

Closed
0xdevalias opened this issue Sep 25, 2020 · 0 comments
Closed

[bin] Improve prettyjson helper script #18

0xdevalias opened this issue Sep 25, 2020 · 0 comments
Assignees

Comments

@0xdevalias
Copy link
Owner

#!/bin/bash
# Simple JSON pretty print for contents on your cliboard
pbpaste | json_pp | pbcopy

# https://stackoverflow.com/questions/20265439/how-can-i-pretty-print-a-json-file-from-the-command-line/24951417
# TODO:
#   if Json_pp, then use that
#   if python json.tool, then use that
#   if jq, then use that
#   etc

# TODO:
#   if data being piped in, use that
#   else pbpaste
#
#   if data being piped out, allow it
#   else pbcopy
@0xdevalias 0xdevalias self-assigned this Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant