jsize icon indicating copy to clipboard operation
jsize copied to clipboard

Support getting size of pasted script in cli.

Open DylanPiercey opened this issue 7 years ago • 2 comments

Was thinking I often find myself needing to calculate the minified size of some arbitrary script I found on the internet.

It would be awesome to be able to:

jsize --verbose
# [PASTE SCRIPT]

   Initial  Minified  Gzipped
  
   271 kB   88.6 kB   30.8 kB

DylanPiercey avatar Dec 02 '17 17:12 DylanPiercey

If we will have support for files #49 we can use stdin: pbpaste | jsize

antonmedv avatar Dec 02 '17 18:12 antonmedv

Ah yes that'd be perfect.

DylanPiercey avatar Dec 02 '17 18:12 DylanPiercey