sbaaaang sbaaaang - 1 month ago 5x
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.