I'm learning Node.js and writing a simple module using the Visual Studio 2015 Node.JS extension.
I know ./
means 'look for the file in the same directory'. But in most systems I've seen (say, #include
in C++) the forwarding ./
is optional. I've tried to remove it but it turns out Node.js cannot find modules without the prefix. For me it seems ugly, so is it really mandatory? If yes, why?
Regards,