I have a readStream
and I want to know its content encoding.
One of the way which I know is through detect-character-encoding module. But it requires me to read the chunks(Buffers) from readStream due to which I lose the data, as I require readStream further in the code logic as well.
So is there a way to know the readStream's encoding without leading to data(chunk) losses.