Skip to content

Instantly share code, notes, and snippets.

@gvn
Created February 24, 2014 23:46
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 gvn/9199712 to your computer and use it in GitHub Desktop.
Save gvn/9199712 to your computer and use it in GitHub Desktop.

JS Punctuation Preprocessor

Before

function blah()
  console.log('blah')

  if (foo === 1)
    bar = 2
    doSomething()
  else
    doSomethingElse()

After

function blah() {
  console.log('blah');

  if (foo === 1) {
    bar = 2;
    doSomething();
  } else {
    doSomethingElse();
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment