phpcyy/pson

json pretty with colors

v1.1.6 2020-08-09 08:42 UTC

This package is auto-updated.

Last update: 2024-09-09 17:36:32 UTC


README

Json pretty show with colors in terminal.

Usage

Simple usage:

composer g require phpcyy/pson

# Format json from file.
~/.composer/vendor/bin/pson file.json

# Or from STDIN (standard input).
echo '{"message": "hello, 世界"}' | ~/.composer/vendor/bin/pson

And you will see:

You may add pson into your environment variable ($PATH), and you can use it anywhere.

Just enjoy it.