Skip to content

Commit 239849e

Browse files
committed
simple formating utility
1 parent a875cb0 commit 239849e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/json-format

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
PATH="$(dirname $0)/../lib:$PATH" source json.bash
4+
5+
[ $# -gt 0 ] && JSON.style "$1" "$2"
6+
JSON.load | JSON.dump

0 commit comments

Comments
 (0)