antonmedv / jsize

Find out minified and gzipped npm package size
MIT License
178 stars 12 forks source link

Support getting size of pasted script in cli. #50

Open DylanPiercey opened 6 years ago

DylanPiercey commented 6 years ago

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
antonmedv commented 6 years ago

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

DylanPiercey commented 6 years ago

Ah yes that'd be perfect.