Topic: NodeJS โ Page 6
Node.js gives friendly warnings in case you add too much event listeners to an event emitter
You can use process.mainModule or require.main to figure out what the entry level of a Node.js script is.
The
--check
flag of the Node.js executable can be used to quickly check JavaScript files for syntax errors without executing them.