Closed qsniyg closed 6 years ago
I'd like to keep output data clean. IMHO, code is very modular and you can make your own custom http wrapper with minimal efforts.
you can make your own custom http wrapper with minimal efforts
How exactly would I do this? I've looked through the source code, but I haven't found any way to do this, other than by modifying the library itself.
http.js
into your project.require('probe-image-size/stream')
(replace .
with probe-image-size
)
The way I implemented it was like this (in stream.js):
This is very useful for my use case, where I need to know various other headers as well as just the size.