Skip to content

Quick service for Linux watches JSON file changes and views it on stdout using Less

License

Notifications You must be signed in to change notification settings

hanymamdouh82/jsonwatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSONWatcher

this service not yet completed and is still in its early stages. Please don't consider it as a production release.

A service to watch json file changes and view it on stdout using less.

As I'm a developer, many times I log objects on terminal for inspection during development. I found that it takes approx. 30 seconds to copy dumped json from terminal to IDE, format it, and then insepct it. I decided to develop a service that I can run on my second screen and see the dumped json updated while I'm working, therefor saving my time.

How to use

  1. build the service
    GOOS=linux go build -o jsonwatcher ./...

run the service and provide a file to watch

./jsonwatcher -f myfile.json

to exit press q, this will close less and take you to the file changes log. Press q again to terminate the program.

About

Quick service for Linux watches JSON file changes and views it on stdout using Less

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages