kangax / jscritic

Quickly check how well 3rd party script behaves.
jscritic.com
118 stars 8 forks source link

display the gzipped minified size too #2

Open jdalton opened 10 years ago

jdalton commented 10 years ago

jscritic should display the gzipped minified size too.

kangax commented 10 years ago

It's easy to show this when running through node (e.g. require('child_process').exec('gzip -c ... > ...')) but what about on a client side? Are there any good JS gzip libs that work in a browser?

/cc @XhmikosR @mathiasbynens

XhmikosR commented 10 years ago

Maybe https://github.com/nodeca/pako?

XhmikosR commented 10 years ago

@kangax: https://github.com/sindresorhus/gzip-size

mathiasbynens commented 10 years ago

@XhmikosR https://github.com/sindresorhus/gzip-size doesn’t run client-side either. https://github.com/nodeca/pako claims to, though.

XhmikosR commented 10 years ago

Either way, I'm just throwing out ideas.

kangax commented 10 years ago

/cc @sindresorhus

sindresorhus commented 10 years ago

Yeah, gzip-size is just for node. Just use pako. It's what gzip-size uses for the sync method.