Skip to content

Instantly share code, notes, and snippets.

@sspencer
Created April 22, 2013 23:10
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 sspencer/5439384 to your computer and use it in GitHub Desktop.
Save sspencer/5439384 to your computer and use it in GitHub Desktop.
Shell function to send JS file thru closure. Usage: closurejs file.js
closurejs()
{
curl -s --data output_info=compiled_code --data-urlencode js_code@${1} http://closure-compiler.appspot.com/compile
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment