Last active
June 27, 2017 13:06
-
-
Save wheresrhys/61fb4e155b2e4e7c0dedca22406d203d to your computer and use it in GitHub Desktop.
json tabs to spaces
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
for file in $(find . -name '*.json'); | |
do | |
node -e "fs.writeFileSync('$file', JSON.stringify(require('./$file'), null, 2) + '\n')" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment