Javascript Package - Main (Entry Point)
Table of Contents
About
Language - (Main|Application Entry point) in Node.
- See main property in package.json
- Because module provides a filename property (normally equivalent to __filename), the entry point of the current application can be obtained by checking require.main.filename