Skip to content

Instantly share code, notes, and snippets.

@tmcw

tmcw/websize

Created Dec 29, 2012
Embed
What would you like to do?
#!/bin/bash
echo "raw kb"
units "`cat $1 | wc -c` bytes" "kilobytes"
echo "uglified kb"
units "`uglifyjs $1 | wc -c` bytes" "kilobytes"
echo "gzipped kb"
units "`uglifyjs $1 | gzip -9f | wc -c` bytes" "kilobytes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.