Hacker News new | ask | show | jobs
Pigment – colorize JSON as you wanted (github.com)
1 points by 1buran 699 days ago
1 comments

Hey gophers!

I'am glad to share with you my little experiment of writing lexers, it's was such funny so i decided share the result with community :)

Meet Pigment! It may be useful for writing internal/personal scripts require showing the JSON data, when you faced with lack of flexibility of existing libs (not all support custom color themes, styling - bold, underline etc) or no need all their features (e.g. huge lib which can be colorize 20+ different data format, but you need only the one - json).

Demo: https://imgur.com/ojdMg7W Project home: https://github.com/1buran/pigment