Skip to content

Instantly share code, notes, and snippets.

@fakenickels
Last active January 19, 2016 22:59
Show Gist options
  • Save fakenickels/6b749f0d96366e1f8c84 to your computer and use it in GitHub Desktop.
Save fakenickels/6b749f0d96366e1f8c84 to your computer and use it in GitHub Desktop.
ES5 to ES6 syntax snippets
# { fn:function(args){} } => { fn(args){} }
find . -name \*.js -exec perl -p -i -e 's/:\s?function\s?\((.+)?\)\s?/(\1)/' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment