How do I make "node ." work?

I've run node . in various NodeJS apps in the past, and it seems to know to run index.js, server.js, etc. Is there a package.json setting (or something similar) that I can configure so that NodeJS knows which file should run?

npm does have a one configuration for that:

"main": "app.js"