sbaaaang sbaaaang - 6 months ago 40
Node.js Question

Detect file size before to save it?

Is it possible to detect the size will be the file before saving it?

I have the file content which is a string, but i would like to check before how much space will take the file.

Any advice appreciated, thank you.