The default value for the start script is to exec node server.js, so if there's no specific start script on package.json and the package has only a single executable (like a CLI), that executable file should be named server.js so it can be launched with npm in a standard and homogeneous way.
The default value for the
start
script is to execnode server.js
, so if there's no specificstart
script on package.json and the package has only a single executable (like a CLI), that executable file should be namedserver.js
so it can be launched withnpm
in a standard and homogeneous way.