What is the difference between os.tmpDir and os.tmpdir?

I studied the standard OS npm in node, these are 2 properties with the same name as lowercase (tmpdir) and others in camelcase (tmpDir). When I made a console log, I see the same result.

So what is the difference between os.tmpDir and os.tmpdir in node? Any specific purpose?

Thanks Dhiraj Gupta p>

+4
source share
1 answer

They are the same. Check source

For reference, code:

exports.tmpDir = exports.tmpdir;

Btw: This is a method, not a property.

+4
source

Source: https://habr.com/ru/post/1539435/


All Articles