Sunday 13 May 2018

index.js automatically found. Is there a list of file names Node automatically finds?

I accidentally wrote out a command on my compy without pointing directly to node /folder/index.js and just wrote node /folder/ and voila, it still ran the right script. Is there a list of file names that node automatically finds, or is index primarily it?

Submitted May 13, 2018 at 10:58PM by ms_nitrogen

No comments:

Post a Comment