Skip to content

Instantly share code, notes, and snippets.

@wheresrhys
Last active June 27, 2017 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wheresrhys/61fb4e155b2e4e7c0dedca22406d203d to your computer and use it in GitHub Desktop.
Save wheresrhys/61fb4e155b2e4e7c0dedca22406d203d to your computer and use it in GitHub Desktop.
json tabs to spaces
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