Created
January 26, 2019 01:33
-
-
Save niedzielski/50e120d6c5209bde0546da076e6c2875 to your computer and use it in GitHub Desktop.
Pretty-print a JSON string from stdin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node -pe 'JSON.stringify(JSON.parse(require("fs").readFileSync(0)), null, 2)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment