Quantcast
Channel: NodeJs get size of variable in bytes - Stack Overflow
Viewing all articles
Browse latest Browse all 2

NodeJs get size of variable in bytes

$
0
0

I have a variable 'img' which is an image file that has been loaded via:

var img = fs.readFileSync('./tmp.png');

How do I determine how many bytes the 'img' variable is?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images