Skip to content

Instantly share code, notes, and snippets.

@levicole
Created September 11, 2009 06:22
Show Gist options
  • Select an option

  • Save levicole/185118 to your computer and use it in GitHub Desktop.

Select an option

Save levicole/185118 to your computer and use it in GitHub Desktop.
#include <stdio.h>
//usage cat javascript.js | minifier > javascript.mini.js
int main(int argc, char const* argv[])
{
int c;
while ((c=getchar()) != EOF) {
if (c!= '\n' && c!='\t' && c!='\r')
putchar(c);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment