Skip to content

tomerab1/meow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meow Logo

Meow: JSON Pretty Printer

A simple CLI tool to pretty print your JSON.

Before: (ノಠ益ಠ)ノ彡┻━┻

Pretty JSON

After: (= ФェФ=)

Not Pretty JSON

Features

  • Pretty Printing: Meow automatically formats JSON data with proper indentation and line breaks, ensuring that the output is clean and well-organized. This makes it easier to read and understand complex JSON structures.

  • Color-Coded Output: To further enhance readability, Meow highlights different JSON data types with distinct colors:

    • Strings: Green
    • Booleans: Yellow
    • Numbers: Magenta
    • Map Keys: Cyan
  • CLI Integration: Meow seamlessly integrates with the command line, supporting input redirection and pipes. This allows users to easily format JSON data from files, APIs, or other command-line tools.

Requirements

  • Java 17 or higher

Installation

Using the JAR File

  1. Download the JAR file

    Download the latest meow.jar from the releases page.

  2. Run the tool

    To pretty print JSON, run the following command:

    echo '{"=-..-=": "MEOW"}' | java -jar meow.jar
  3. Create a Script for Convenience

    You can create a shell script to make running the tool easier. Create a meow.sh file with the following content:

    #!/bin/bash
    java -jar meow.jar "$@"

    Make the script executable:

    chmod +x meow.sh

    Now, you can use the script to pretty print JSON:

    echo '{"=-..-=": "MEOW"}' | ./meow.sh

Usage

Meow can be used in various ways:

  • From a file:

    java -jar meow.jar < file.json
  • From a URL:

    curl -s https://api.example.com/data | java -jar meow.jar

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Feel free to open issues or submit pull requests for any improvements or features you would like to see. Contributions are welcome!

Meow Logo

About

A little cli tool to pretty print your JSON

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages